leoncx / testmigrate

0 stars 0 forks source link

sudo usless #221

Open leoncx opened 9 years ago

leoncx commented 9 years ago

Author Name: Quentin Garnier (Quentin Garnier) Original Redmine Issue: 6026, https://forge.centreon.com/issues/6026 Original Date: 2014-12-10 Original Assignee: Sylvestre Ho


Hi,

To test centreon-engine configuration, centreon-clapi does a sudo:

/*
         * Launch test command
         */
        exec(escapeshellcmd("sudo " . $nagios_bin["nagios_bin"] . " -v ".$this->nagiosCFGPath.$variables."/nagiosCFG.DEBUG"), $lines, $return_code);

The sudo is useless. Could you remove it ? The better is: add an option to tell: --use-sudo