Skip to content

Commit 43b6000

Browse files
committed
reword the startup command helper
1 parent 4f8b8d6 commit 43b6000

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/API/Startup.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ module.exports = function(CLI) {
2121
*/
2222
function isNotRoot(platform, opts, cb) {
2323
if (opts.user) {
24-
Common.printOut(cst.PREFIX_MSG + 'You have to run this command as root. Execute the following command:');
24+
Common.printOut(cst.PREFIX_MSG + 'To setup the Startup Script, copy/paste the following command:');
2525
console.log('sudo env PATH=$PATH:' + path.dirname(process.execPath) + ' pm2 ' + opts.args[1].name() + ' ' + platform + ' -u ' + opts.user + ' --hp ' + process.env.HOME);
2626
return cb(new Error('You have to run this with elevated rights'));
2727
}
2828
return exec('whoami', function(err, stdout, stderr) {
29-
Common.printOut(cst.PREFIX_MSG + 'You have to run this command as root. Execute the following command:');
29+
Common.printOut(cst.PREFIX_MSG + 'To setup the Startup Script, copy/paste the following command:');
3030
console.log('sudo env PATH=$PATH:' + path.dirname(process.execPath) + ' ' + require.main.filename + ' ' + opts.args[1].name() + ' ' + platform + ' -u ' + stdout.trim() + ' --hp ' + process.env.HOME);
3131
return cb(new Error('You have to run this with elevated rights'));
3232
});

0 commit comments

Comments
 (0)