diff options
Diffstat (limited to 'packages/freeradius.xml')
-rw-r--r-- | packages/freeradius.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/freeradius.xml b/packages/freeradius.xml index 4d8c7588..d646cedb 100644 --- a/packages/freeradius.xml +++ b/packages/freeradius.xml @@ -77,6 +77,8 @@ <custom_php_command_before_form> function sync_package() { + conf_mount_rw(); + config_lock(); global $config; $fout = fopen("/usr/local/etc/raddb/users","w"); fwrite($fout, "# This file was automatically generated by the pfSense\n# package management system.\n\n"); @@ -86,6 +88,8 @@ } } fclose($fout); + conf_mount_ro(); + config_unlock(); system("/usr/bin/killall -HUP radiusd"); } </custom_php_command_before_form> |