restart webserver on cert chagne, don't force reboot...reboots are for wimps

This commit is contained in:
Bill Marquette 2005-03-21 04:51:33 +00:00
parent ce62fee7c2
commit 61deccba10

View File

@ -154,11 +154,12 @@ if ($_POST) {
if (($config['system']['webgui']['certificate'] != $oldcert)
|| ($config['system']['webgui']['private-key'] != $oldkey)) {
touch($d_sysrebootreqd_path);
// touch($d_sysrebootreqd_path);
system_webgui_start();
} else if (($g['platform'] == "generic-pc") && ($config['system']['harddiskstandby'] != $oldharddiskstandby)) {
if (!$config['system']['harddiskstandby']) {
// Reboot needed to deactivate standby due to a stupid ATA-protocol
Touch($d_sysrebootreqd_path);
touch($d_sysrebootreqd_path);
unset($config['system']['harddiskstandby']);
} else {
// No need to set the standby-time if a reboot is needed anyway