Merge pull request #2388 from hoverruan/development

bugfix: variable "that" is not defined
This commit is contained in:
Alexandre Strzelewicz 2016-09-19 11:46:39 +02:00 committed by GitHub
commit eb6a39a414

View File

@ -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:');