diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-08-21 19:38:44 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-08-21 19:38:44 +0000 |
commit | d8e8296da0bb2f689b7a36873ee1ba81ae533448 (patch) | |
tree | 71b0ff5bb49ae3b98dde0bd1f51fc7916b5ddb7d /usr/local/www/system_advanced.php | |
parent | edc670639a47cf7bf55b4e06b90384625509c5bc (diff) | |
download | pfsense-d8e8296da0bb2f689b7a36873ee1ba81ae533448.zip pfsense-d8e8296da0bb2f689b7a36873ee1ba81ae533448.tar.gz |
Only reload webGUI con CERT or KEY changes.
Diffstat (limited to 'usr/local/www/system_advanced.php')
-rwxr-xr-x | usr/local/www/system_advanced.php | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php index 24e783f..32d5e99 100755 --- a/usr/local/www/system_advanced.php +++ b/usr/local/www/system_advanced.php @@ -687,13 +687,15 @@ include("head.inc"); <?php -if (($config['system']['webgui']['certificate'] != $oldcert) - || ($config['system']['webgui']['private-key'] != $oldkey)) { - ob_flush(); - flush(); - log_error("webConfigurator certificates have changed. Restarting webConfigurator."); - sleep(1); - touch("/tmp/restart_webgui"); +if($_POST['cert'] || $_POST['key']) { + if (($config['system']['webgui']['certificate'] != $oldcert) + || ($config['system']['webgui']['private-key'] != $oldkey)) { + ob_flush(); + flush(); + log_error("webConfigurator certificates have changed. Restarting webConfigurator."); + sleep(1); + touch("/tmp/restart_webgui"); + } } ?> |