diff options
Diffstat (limited to 'usr/local')
-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"); + } } ?> |