From db4e2078da574a50ffa115ba41febc22a9bd1ce4 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Tue, 5 Sep 2006 14:28:37 +0000 Subject: Enhance checks to make sure /var/squid/cache/01/01 exists. if not, run squid -z --- packages/squid.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/squid.inc b/packages/squid.inc index 1336a9fa..ac4ebf55 100644 --- a/packages/squid.inc +++ b/packages/squid.inc @@ -649,7 +649,7 @@ function squid_resync() { file_put_contents(SQUID_CONFBASE . '/squid.conf', $conf); - if(!is_dir("/var/squid/cache")) { + if(!is_dir("/var/squid/cache/01/01")) { log_error("/var/squid/cache does not exist. Creating."); exec("/usr/local/sbin/squid -z"); } -- cgit v1.2.3