aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--packages/squidGuard.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/squidGuard.xml b/packages/squidGuard.xml
index 77849012..c305af91 100644
--- a/packages/squidGuard.xml
+++ b/packages/squidGuard.xml
@@ -56,10 +56,10 @@
fwrite($fout, "\t }\n");
fwrite($fout, "}\n");
fclose($fout);
- sync_package("squid");
- $fout = fopen("/usr/local/etc/squid/squid.conf","a");
+ add_text_to_file("/usr/local/etc/squid/squid.conf", "redirect_program /usr/local/bin/squidGuard -c /usr/local/etc/squid/squidGuard.conf");
+ <-- $fout = fopen("/usr/local/etc/squid/squid.conf","a");
fwrite($fout, "redirect_program /usr/local/bin/squidGuard -c /usr/local/etc/squid/squidGuard.conf\n");
- fclose($fout);
+ fclose($fout); -->
mwexec("/usr/bin/touch /usr/local/squid/logs/squidGuard.log");
mwexec("/usr/sbin/chown squid /usr/local/squid/logs/squidGuard.log");
mwexec("/usr/bin/chgrp squid /usr/local/squid/logs/squidGuard.log");