aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@G5.local>2009-10-26 19:33:55 -0400
committerScott Ullrich <sullrich@G5.local>2009-10-26 19:33:55 -0400
commit1e3d6494907cf667295311e3fe6d58838489a897 (patch)
tree30543afcf5cf3166193b660a938b11d13f48c0b5 /config/squid
parentb01a27a54c97e5c4f96c412794c11dc7acad91e1 (diff)
downloadpfsense-packages-1e3d6494907cf667295311e3fe6d58838489a897.tar.gz
pfsense-packages-1e3d6494907cf667295311e3fe6d58838489a897.tar.bz2
pfsense-packages-1e3d6494907cf667295311e3fe6d58838489a897.zip
Remove cache dir on deinstall if it exists
Diffstat (limited to 'config/squid')
-rw-r--r--config/squid/squid.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/config/squid/squid.inc b/config/squid/squid.inc
index f7e5cd05..3063e78b 100644
--- a/config/squid/squid.inc
+++ b/config/squid/squid.inc
@@ -257,6 +257,8 @@ function squid_deinstall_command() {
$logdir = ($settings['log_dir'] ? $settings['log_dir'] : '/var/squid/log');
mwexec('rm -rf $cachedir');
mwexec('rm -rf $logdir');
+ if(isdir("/var/squid/cache"))
+ mwexec("rm -rf /var/squid/cache");
mwexec('rm -f /usr/local/etc/rc.d/proxy_monitor.sh');
mwexec("ps awux | grep \"proxy_monitor\" | grep -v \"grep\" | grep -v \"php\" | awk '{ print $2 }' | xargs kill");
mwexec("ps awux | grep \"squid\" | grep -v \"grep\" | awk '{ print $2 }' | xargs kill");