aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
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>