aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-03-13 22:48:24 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-03-13 22:48:24 +0000
commit7b8daac747c12fdf412463dd4e3d0cb089f22506 (patch)
tree3bc9937999bb315e3edb2859c4f3fcf8bb708e0a /packages
parent79de8c61c1a825b793ca20c09aacaeeb81844dfb (diff)
downloadpfsense-packages-7b8daac747c12fdf412463dd4e3d0cb089f22506.tar.gz
pfsense-packages-7b8daac747c12fdf412463dd4e3d0cb089f22506.tar.bz2
pfsense-packages-7b8daac747c12fdf412463dd4e3d0cb089f22506.zip
* Use sync_package("squid");
* Cleanup a few tabs
Diffstat (limited to 'packages')
-rw-r--r--packages/squidGuard.xml12
1 files changed, 7 insertions, 5 deletions
diff --git a/packages/squidGuard.xml b/packages/squidGuard.xml
index be277d12..ab4ea972 100644
--- a/packages/squidGuard.xml
+++ b/packages/squidGuard.xml
@@ -7,6 +7,7 @@
<configpath>['installedpackages']['squidGuard']['config']</configpath>
<custom_php_install_command>
echo "&lt;pre&gt;";
+ sync_package("squid");
$fout = fopen("/usr/local/etc/squid/squidGuard.conf","w");
fwrite($fout, "# cat squidGuard.conf\n");
fwrite($fout, "dbhome /var/db/squidGuard\n");
@@ -26,10 +27,10 @@
mwexec("/usr/bin/chgrp squid /usr/local/squid/logs/squidGuard.log");
mwexec("/bin/chmod 744 /usr/local/squid/logs/squidGuard.log");
mwexec("/usr/bin/touch /var/log/squidGuard.log");
- mwexec("/usr/sbin/chown squid /var/log/squidGuard.log");
- mwexec("/usr/bin/chgrp squid /var/log/squidGuard.log");
- mwexec("/bin/chmod 744 /var/log/squidGuard.log");
- mwexec("/usr/sbin/chown -R squid /var/db/squidGuard");
+ mwexec("/usr/sbin/chown squid /var/log/squidGuard.log");
+ mwexec("/usr/bin/chgrp squid /var/log/squidGuard.log");
+ mwexec("/bin/chmod 744 /var/log/squidGuard.log");
+ mwexec("/usr/sbin/chown -R squid /var/db/squidGuard");
mwexec("/usr/bin/chgrp -R squid /var/db/squidGuard");
mwexec("/bin/chmod -R 755 /var/db/squidGuard");
system("/usr/local/sbin/squid -k reconfigure");
@@ -43,7 +44,8 @@
mwexec("/bin/cp /tmp/squidtmp.conf /usr/local/etc/squid/squid.conf");
mwexec("/bin/rm /tmp/squidtmp.conf");
mwexec("/bin/rm /var/log/squidGuard.lovar/log/squidGuard.log
- mwexec("/bin/rm -rf /var/db/squidGuard");
+ mwexec("/bin/rm -rf /var/db/squidGuard");
+ sync_package("squid");
system("/usr/local/sbin/squid -k reconfigure");
</custom_php_deinstall_command>
<process_kill_command>squidGuard</process_kill_command>