From 7b8daac747c12fdf412463dd4e3d0cb089f22506 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 13 Mar 2005 22:48:24 +0000 Subject: * Use sync_package("squid"); * Cleanup a few tabs --- packages/squidGuard.xml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'packages/squidGuard.xml') 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 @@ ['installedpackages']['squidGuard']['config'] echo "<pre>"; + 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"); squidGuard -- cgit v1.2.3