aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pfstat.xml
diff options
context:
space:
mode:
Diffstat (limited to 'packages/pfstat.xml')
-rw-r--r--packages/pfstat.xml4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/pfstat.xml b/packages/pfstat.xml
index 6e3fd70e..f95e5b19 100644
--- a/packages/pfstat.xml
+++ b/packages/pfstat.xml
@@ -206,6 +206,8 @@
</fields>
<custom_php_command_before_form>
function sync_package() {
+ conf_mount_rw();
+ config_lock();
global $config;
$fout = fopen("/usr/local/etc/pfstat.conf","w");
if($config['installedpackages']['pfstat']['config'] != "") {
@@ -250,6 +252,8 @@
}
}
fclose($fout);
+ conf_mount_ro();
+ config_unlock();
}
sync_package();
</custom_php_command_before_form>