From cff0699efc5b71abc5a30ec6f7a8344ccc233691 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Tue, 19 Dec 2006 22:30:11 +0000 Subject: Fix the cache creation. --- packages/squid.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'packages') diff --git a/packages/squid.inc b/packages/squid.inc index 52afba14..91c4dc66 100644 --- a/packages/squid.inc +++ b/packages/squid.inc @@ -740,12 +740,13 @@ function squid_resync() { } if(!is_dir($disk_cache_location.'01/')) { log_error($disk_cache_location." does not exist. Creating."); - exec("/usr/local/sbin/squid -z"); + mwexec("/usr/local/sbin/squid -z"); } if (!is_service_running('squid')) { log_error("Starting Squid"); + mwexec("/usr/local/sbin/squid -z"); mwexec_bg("/usr/local/sbin/squid -D"); mwexec_bg("/usr/local/etc/rc.d/proxy_monitor.sh"); } else { -- cgit v1.2.3