aboutsummaryrefslogtreecommitdiffstats
path: root/packages/freeradiussettings.xml
diff options
context:
space:
mode:
Diffstat (limited to 'packages/freeradiussettings.xml')
-rw-r--r--packages/freeradiussettings.xml5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/freeradiussettings.xml b/packages/freeradiussettings.xml
index 5ef05756..ac157dc2 100644
--- a/packages/freeradiussettings.xml
+++ b/packages/freeradiussettings.xml
@@ -34,6 +34,8 @@
</fields>
<custom_php_command_before_form>
function sync_package() {
+ conf_mount_rw();
+ config_lock();
global $config;
$fout = fopen("/usr/local/etc/raddb/radiusd.conf.dynamic","w");
fwrite($fout, "# This file was automatically generated by the pfSense\n# package management system.\n\n");
@@ -49,9 +51,10 @@
fwrite($fout, "type = auth\n}\n\n");
fwrite($fout, "{\nipaddr = 127.0.0.1\nport = 0\ntype = auth\n}\n\n");
fclose($fout);
+ conf_mount_ro();
+ config_unlock();
}
system("killall -HUP radiusd");
- sync_package();
</custom_php_command_before_form>
<custom_add_php_command>
sync_package();