diff options
author | bkw <bkw> | 2005-08-20 22:02:50 +0000 |
---|---|---|
committer | bkw <bkw> | 2005-08-20 22:02:50 +0000 |
commit | 95702ece6a7c74a673680c6f668c01426f1cabaa (patch) | |
tree | c4d7875af0cd59e317b575e2e7cb28be883853a4 | |
parent | 325dc29f6c5e44929cd78d0e03c9ccb6d2df1932 (diff) | |
download | pfsense-packages-95702ece6a7c74a673680c6f668c01426f1cabaa.tar.gz pfsense-packages-95702ece6a7c74a673680c6f668c01426f1cabaa.tar.bz2 pfsense-packages-95702ece6a7c74a673680c6f668c01426f1cabaa.zip |
add text to file function used here too
-rw-r--r-- | packages/squidGuard.xml | 6 |
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");
|