diff --git a/lib/setup.js b/lib/setup.js index c35a0508a1..1cc8c29dcd 100644 --- a/lib/setup.js +++ b/lib/setup.js @@ -1043,7 +1043,7 @@ function upgradeAdapter(repoUrl, adapter, forceDowngrade, callback) { function setChmod(callback) { var platform = require('os').platform(); - console.log('Host "' + hostname + '"(' + platform + ') updated'); + console.log('Host "' + require('os').hostname() + '" (' + platform + ') updated'); // Call command chmod +x __dirname if under linux or darwin if (platform == 'linux' || platform == 'darwin') { var exec = require('child_process').exec;