fsync conf_path here too

This commit is contained in:
Chris Buechler 2015-07-10 17:48:06 -05:00
parent 89a8d28e5c
commit d7b97ca34c

View File

@ -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", "");