mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
restart webserver on cert chagne, don't force reboot...reboots are for wimps
This commit is contained in:
parent
ce62fee7c2
commit
61deccba10
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user