From b71f95f7bc37d8f94a3b6c31b78d2be8a40c4a97 Mon Sep 17 00:00:00 2001 From: SJ Date: Sun, 29 Sep 2013 10:53:02 +0200 Subject: [PATCH] you can customize the reload command in the gui --- webui/config.php | 1 + webui/controller/policy/apply.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/webui/config.php b/webui/config.php index e0fb2184..7e0dcc2f 100644 --- a/webui/config.php +++ b/webui/config.php @@ -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'; diff --git a/webui/controller/policy/apply.php b/webui/controller/policy/apply.php index b373c400..7eb630dc 100644 --- a/webui/controller/policy/apply.php +++ b/webui/controller/policy/apply.php @@ -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'];