aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2011-01-07 15:42:04 -0500
committerjim-p <jimp@pfsense.org>2011-01-07 15:42:04 -0500
commitc6b1f341824aa828a774de3a71f081d946a6aa45 (patch)
tree836c996ab903bdfea400228fcc6b7e4163cd8090
parent33a1414c76dd2830bb392d8d6707eb4f73396021 (diff)
downloadpfsense-packages-c6b1f341824aa828a774de3a71f081d946a6aa45.tar.gz
pfsense-packages-c6b1f341824aa828a774de3a71f081d946a6aa45.tar.bz2
pfsense-packages-c6b1f341824aa828a774de3a71f081d946a6aa45.zip
Put this back. It didn't fix the original problem and could be problematic for 1.2.x.
-rw-r--r--config/siproxd.inc7
1 files changed, 7 insertions, 0 deletions
diff --git a/config/siproxd.inc b/config/siproxd.inc
index 381e5221..8e74143e 100644
--- a/config/siproxd.inc
+++ b/config/siproxd.inc
@@ -31,6 +31,7 @@ if(!function_exists("filter_configure"))
require_once("filter.inc");
function sync_package_sipproxd_users() {
+ conf_mount_rw();
global $config;
$fout = fopen("/usr/local/etc/siproxd_passwd.cfg","w");
fwrite($fout, "# This file was automatically generated by the pfSense\n# package management system.\n\n");
@@ -40,6 +41,7 @@ function sync_package_sipproxd_users() {
}
}
fclose($fout);
+ conf_mount_ro();
system("/usr/bin/killall -HUP siproxd");
}
@@ -93,6 +95,8 @@ function siproxd_generate_rules($type) {
function sync_package_siproxd() {
global $config;
+ conf_mount_rw();
+
$siproxd_chroot = "/var/siproxd/";
@mkdir($siproxd_chroot);
@chown($siproxd_chroot, "nobody");
@@ -244,6 +248,9 @@ function sync_package_siproxd() {
sleep(3);
filter_configure();
+
+ conf_mount_ro();
+
}
function validate_form_siproxd($post, $input_errors) {