From 12bc9bbc405b99c0dfe65b48440cb58ac1b2cfd7 Mon Sep 17 00:00:00 2001 From: jim-p Date: Mon, 12 Oct 2009 18:55:33 -0400 Subject: Add some rw/ro calls to make squidGuard happy on nano. --- config/squidGuard/squidguard.inc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config/squidGuard/squidguard.inc') 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; } -- cgit v1.2.3