aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-07-29 21:49:11 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-07-29 21:49:11 +0000
commit6583b8b03f0b89c0974c957f5e9ba3320396202b (patch)
tree907bb79911253c8924904d8506d71ee149c571ab /packages
parente80d387f9ac10df4037f977c6cd1fcca1fa44c38 (diff)
downloadpfsense-packages-6583b8b03f0b89c0974c957f5e9ba3320396202b.tar.gz
pfsense-packages-6583b8b03f0b89c0974c957f5e9ba3320396202b.tar.bz2
pfsense-packages-6583b8b03f0b89c0974c957f5e9ba3320396202b.zip
If /var/squid/cache does not exist then force a squid -z
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();