From 6eaef639b65218a44902c87df6094abb1de18de3 Mon Sep 17 00:00:00 2001 From: Alan Shaw Date: Fri, 28 Nov 2014 10:17:17 +0000 Subject: [PATCH] Replace all the dots --- lib/CLI.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CLI.js b/lib/CLI.js index 31eb8c84..3631cf0e 100644 --- a/lib/CLI.js +++ b/lib/CLI.js @@ -644,7 +644,7 @@ CLI.prototype.remoteHostConfig = function(host, options) { if(error) throw error if(!host) { - host = hostname.replace(/\./, '-') + host = hostname.replace(/\./g, '-') } console.info('') @@ -679,7 +679,7 @@ CLI.prototype.addRemoteUser = function(userName, hostName, options) { console.info('') console.info('Add the following to your bossweb-users file:') console.info('') - console.info('[%s.%s]'.cyan, userName, os.hostname().replace(/\./, '-')) + console.info('[%s.%s]'.cyan, userName, os.hostname().replace(/\./g, '-')) console.info(' secret = %s'.cyan, user.secret) console.info('') console.info('If %s is not in your config file yet, run `bs-web passwd %s` to generate the appropriate configuration', userName, userName)