aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
Diffstat (limited to 'packages')
-rw-r--r--packages/squid.inc10
1 files changed, 4 insertions, 6 deletions
diff --git a/packages/squid.inc b/packages/squid.inc
index 9c359dca..d84001ba 100644
--- a/packages/squid.inc
+++ b/packages/squid.inc
@@ -83,9 +83,6 @@ EOD;
if (!file_exists(SQUID_CONFBASE . '/mime.conf') && file_exists(SQUID_CONFBASE . '/mime.conf.default'))
copy(SQUID_CONFBASE . '/mime.conf.default', SQUID_CONFBASE . '/mime.conf');
- if(!is_dir("/var/squid/cache/"))
- exec("squid -z");
-
}
function squid_deinstall_command() {
@@ -326,9 +323,6 @@ EOD;
$valid_acls[] = 'localnet';
}
- if(!is_dir("/var/squid/cache/"))
- exec("squid -z");
-
return $conf;
}
@@ -636,6 +630,10 @@ function squid_resync() {
squid_resync_users();
file_put_contents(SQUID_CONFBASE . '/squid.conf', $conf);
+
+ if(!is_dir("/var/squid/cache"))
+ exec("/usr/local/sbin/squid -z");
+
restart_service('squid');
filter_configure();