aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squid.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/squid.inc')
-rw-r--r--packages/squid.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/squid.inc b/packages/squid.inc
index ccd4caf5..563620e9 100644
--- a/packages/squid.inc
+++ b/packages/squid.inc
@@ -649,8 +649,10 @@ function squid_resync() {
file_put_contents(SQUID_CONFBASE . '/squid.conf', $conf);
- if(!is_dir("/var/squid/cache"))
+ if(!is_dir("/var/squid/cache")) {
+ log_error("/var/squid/cache does not exist. Creating.");
exec("/usr/local/sbin/squid -z");
+ }
restart_service('squid');