Force restart radvd on TZ change; closes #1551

This commit is contained in:
evbevz 2017-04-20 16:49:54 +03:00 committed by Franco Fichtner
parent 829e0aa268
commit 36af267de3

View File

@ -133,6 +133,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
}
if (count($input_errors) == 0) {
$timezone_changed = $config['system']['timezone'] != $pconfig['timezone'];
$config['system']['hostname'] = $pconfig['hostname'];
$config['system']['domain'] = $pconfig['domain'];
$config['system']['timezone'] = $pconfig['timezone'];
@ -229,6 +231,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
system_timezone_configure();
filter_configure();
if ($timezone_changed) {
/* services that have trouble with changing time zones */
services_radvd_configure();
}
header(url_safe('Location: /system_general.php?savemsg=%s', array(get_std_save_message(true))));
exit;
}