diff options
author | bkw <bkw> | 2005-03-13 22:44:52 +0000 |
---|---|---|
committer | bkw <bkw> | 2005-03-13 22:44:52 +0000 |
commit | 79de8c61c1a825b793ca20c09aacaeeb81844dfb (patch) | |
tree | c102c3e308559db9276eee70f13b3ceb549bfd9a | |
parent | 94d5d7393304cce20ae5d0867c437ec197f8e6b6 (diff) | |
download | pfsense-packages-79de8c61c1a825b793ca20c09aacaeeb81844dfb.tar.gz pfsense-packages-79de8c61c1a825b793ca20c09aacaeeb81844dfb.tar.bz2 pfsense-packages-79de8c61c1a825b793ca20c09aacaeeb81844dfb.zip |
/var/log/squidGuard.log permission change
-rw-r--r-- | packages/squidGuard.xml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/squidGuard.xml b/packages/squidGuard.xml index a4e5b60b..be277d12 100644 --- a/packages/squidGuard.xml +++ b/packages/squidGuard.xml @@ -25,7 +25,11 @@ mwexec("/usr/sbin/chown squid /usr/local/squid/logs/squidGuard.log"); mwexec("/usr/bin/chgrp squid /usr/local/squid/logs/squidGuard.log"); mwexec("/bin/chmod 744 /usr/local/squid/logs/squidGuard.log"); - mwexec("/usr/sbin/chown -R squid /var/db/squidGuard"); + 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/bin/chgrp -R squid /var/db/squidGuard"); mwexec("/bin/chmod -R 755 /var/db/squidGuard"); system("/usr/local/sbin/squid -k reconfigure"); @@ -38,7 +42,8 @@ mwexec("/usr/bin/sed '\$d' /usr/local/etc/squid/squid.conf > /tmp/squidtmp.conf"); mwexec("/bin/cp /tmp/squidtmp.conf /usr/local/etc/squid/squid.conf"); mwexec("/bin/rm /tmp/squidtmp.conf"); - mwexec("/bin/rm -rf /var/db/squidGuard"); + mwexec("/bin/rm /var/log/squidGuard.lovar/log/squidGuard.log + mwexec("/bin/rm -rf /var/db/squidGuard"); system("/usr/local/sbin/squid -k reconfigure"); </custom_php_deinstall_command> <process_kill_command>squidGuard</process_kill_command> |