aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid/squid.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@G5.local>2009-10-26 19:50:49 -0400
committerScott Ullrich <sullrich@G5.local>2009-10-26 19:50:49 -0400
commitdeccbb7c25247b5fef535f07b333fe045fcccfa1 (patch)
tree7c46fc505a7f83e72da02d99b9f0fb0599a7d4e6 /config/squid/squid.inc
parent88ec157ed5c3e59678c54c1f1c7d73fb50c6d968 (diff)
downloadpfsense-packages-deccbb7c25247b5fef535f07b333fe045fcccfa1.tar.gz
pfsense-packages-deccbb7c25247b5fef535f07b333fe045fcccfa1.tar.bz2
pfsense-packages-deccbb7c25247b5fef535f07b333fe045fcccfa1.zip
Add & to variable. Add output window updates
Diffstat (limited to 'config/squid/squid.inc')
-rw-r--r--config/squid/squid.inc12
1 files changed, 7 insertions, 5 deletions
diff --git a/config/squid/squid.inc b/config/squid/squid.inc
index 5419034e..7a1ce702 100644
--- a/config/squid/squid.inc
+++ b/config/squid/squid.inc
@@ -252,20 +252,22 @@ EOD;
function squid_deinstall_command() {
global $config;
squid_install_cron(false);
- $settings = $config['installedpackages']['squidcache']['config'][0];
+ $settings = &$config['installedpackages']['squidcache']['config'][0];
$cachedir =($settings['harddisk_cache_location'] ? $settings['harddisk_cache_location'] : '/var/squid/cache');
$logdir = ($settings['log_dir'] ? $settings['log_dir'] : '/var/squid/log');
+ update_status("Checking Squid cache... One moment please...");
+ update_output_window("This operation may take quite some time, please be patient. Do not press stop or attempt to navigate away from this page during this process.");
mwexec('rm -rf $cachedir');
mwexec('rm -rf $logdir');
- // This should not be necessary but the above seems to not work!?
- if(is_file("/var/squid/cache/swap.state"))
- mwexec("rm -rf /var/squid/cache/swap.state");
+ update_status("Finishing package cleanup.");
+ update_output_window("This operation may take quite some time, please be patient. Do not press stop or attempt to navigate away from this page during this process.");
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");
mwexec("ps awux | grep \"dnsserver\" | grep -v \"grep\" | awk '{ print $2 }' | xargs kill");
mwexec("ps awux | grep \"unlinkd\" | grep -v \"grep\" | awk '{ print $2 }' | xargs kill");
- filter_configure();
+ update_status("Relaoding filter...");
+ filter_configure_sync();
}
function squid_before_form_general($pkg) {