mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
fsync conf_path here too
This commit is contained in:
parent
89a8d28e5c
commit
d7b97ca34c
@ -219,6 +219,7 @@ function restore_backup($file) {
|
||||
unlink_if_exists("{$g['tmp_path']}/config.cache");
|
||||
copy("$file", "/cf/conf/config.xml");
|
||||
pfSense_fsync("/cf/conf/config.xml");
|
||||
pfSense_fsync($g['conf_path']);
|
||||
disable_security_checks();
|
||||
log_error(sprintf(gettext('%1$s is restoring the configuration %2$s'), $g['product_name'], $file));
|
||||
file_notice("config.xml", sprintf(gettext('%1$s is restoring the configuration %2$s'), $g['product_name'], $file), "pfSenseConfigurator", "");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user