aboutsummaryrefslogtreecommitdiffstats
path: root/config/squidGuard/squidguard.inc
diff options
context:
space:
mode:
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;
}