aboutsummaryrefslogtreecommitdiffstats
path: root/config/squidGuard/squidguard.inc
diff options
context:
space:
mode:
authorjim-p <jim@pingle.org>2009-10-12 18:55:33 -0400
committerjim-p <jim@pingle.org>2009-10-12 18:55:33 -0400
commit12bc9bbc405b99c0dfe65b48440cb58ac1b2cfd7 (patch)
tree416ab4408187eaea8fc2992c971f00175b3785d2 /config/squidGuard/squidguard.inc
parentc738a039c14e0b46609fac9ace7766c55ec19c8a (diff)
downloadpfsense-packages-12bc9bbc405b99c0dfe65b48440cb58ac1b2cfd7.tar.gz
pfsense-packages-12bc9bbc405b99c0dfe65b48440cb58ac1b2cfd7.tar.bz2
pfsense-packages-12bc9bbc405b99c0dfe65b48440cb58ac1b2cfd7.zip
Add some rw/ro calls to make squidGuard happy on nano.
Diffstat (limited to 'config/squidGuard/squidguard.inc')
-rw-r--r--config/squidGuard/squidguard.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/squidGuard/squidguard.inc b/config/squidGuard/squidguard.inc
index 38ab4b7c..8007e302 100644
--- a/config/squidGuard/squidguard.inc
+++ b/config/squidGuard/squidguard.inc
@@ -935,11 +935,13 @@ function squidguard_install_command() {
sg_check_system();
# generate squidGuard blacklist entries file (check with squidGuard PORT)
+ conf_mount_rw();
$entries = array("ads", "aggressive", "audio-video", "drugs", "gambling", "hacking",
"mail", "porn", "proxy", "violence", "warez");
file_put_contents(SQUIDGUARD_WORKDIR . SQUIDGUARD_BLK_ENTRIES, implode("\n", $entries));
set_file_access(SQUIDGUARD_WORKDIR, OWNER_NAME, 0755);
set_file_access(SQUIDGUARD_DBHOME, OWNER_NAME, 0755);
+ conf_mount_ro();
sg_reconfigure();
}
@@ -1052,6 +1054,7 @@ function convert_pfxml_to_sgxml() {
capability_update_source();
global $config;
+ conf_mount_rw();
$sgxml = array();
$pfxml = $config['installedpackages'][MODULE_GENERAL]['config'][0];
@@ -1093,6 +1096,7 @@ function convert_pfxml_to_sgxml() {
# store cfg cache
$cfg_xml = dump_xml_config($sgxml, F_SQUIDGUARD);
file_put_contents($sgxml[F_SGCONF_XML], $cfg_xml);
+ conf_mount_ro();
return $sgxml;
}