you can customize the reload command in the gui

This commit is contained in:
SJ 2013-09-29 10:53:02 +02:00
parent a1060b76d0
commit b71f95f7bc
2 changed files with 2 additions and 1 deletions

View File

@ -174,6 +174,7 @@ $config['SPHINX_MAIN_INDEX'] = 'main1,dailydelta1,delta1';
$config['SPHINX_TAG_INDEX'] = 'tag1';
$config['SPHINX_NOTE_INDEX'] = 'note1';
$config['RELOAD_COMMAND'] = 'sudo -n /etc/init.d/rc.piler reload';
$config['LDAP_IMPORT_CONFIG_FILE'] = '/usr/local/etc/ldap-import.cfg';

View File

@ -20,7 +20,7 @@ class ControllerPolicyApply extends Controller {
die("go away");
}
system('sudo -n /etc/init.d/rc.piler reload', $val);
system(RELOAD_COMMAND, $val);
if($val === 0) {
$this->data['x'] = $lang->data['text_applied'];