mirror of
https://github.com/Unitech/pm2.git
synced 2026-02-01 16:57:09 +00:00
Merge pull request #2388 from hoverruan/development
bugfix: variable "that" is not defined
This commit is contained in:
commit
eb6a39a414
@ -45,6 +45,8 @@ module.exports = function(CLI) {
|
||||
};
|
||||
|
||||
CLI.prototype.logrotate = function(opts, cb) {
|
||||
var that = this;
|
||||
|
||||
if (process.getuid() != 0) {
|
||||
return exec('whoami', function(err, stdout, stderr) {
|
||||
Common.printError(cst.PREFIX_MSG + 'You have to run this command as root. Execute the following command:');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user