From 94d5d7393304cce20ae5d0867c437ec197f8e6b6 Mon Sep 17 00:00:00 2001 From: bkw Date: Sun, 13 Mar 2005 22:30:05 +0000 Subject: append instead of overwrite --- packages/squidGuard.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/squidGuard.xml') diff --git a/packages/squidGuard.xml b/packages/squidGuard.xml index e003115a..a4e5b60b 100644 --- a/packages/squidGuard.xml +++ b/packages/squidGuard.xml @@ -17,7 +17,7 @@ fwrite($fout, "\t }\n"); fwrite($fout, "}\n"); fclose($fout); - $fout = fopen("/usr/local/etc/squid/squid.conf","w"); + $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"); fwrite($fout, "redirect_children 4\n"); fclose($fout); @@ -42,4 +42,4 @@ system("/usr/local/sbin/squid -k reconfigure"); squidGuard - \ No newline at end of file + -- cgit v1.2.3