aboutsummaryrefslogtreecommitdiffstats
path: root/packages/squid.inc
diff options
context:
space:
mode:
Diffstat (limited to 'packages/squid.inc')
-rw-r--r--packages/squid.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/squid.inc b/packages/squid.inc
index d0acf191..b3e420a9 100644
--- a/packages/squid.inc
+++ b/packages/squid.inc
@@ -86,6 +86,8 @@ function squid_is_valid_acl($acl) {
function squid_install_command() {
/* create cache */
mwexec("/usr/local/sbin/squid -z");
+ /* make sure pinger is executable */
+ exec("chmod a+x /usr/local/libexec/squid/pinger");
$rc = array();
$rc['file'] = 'squid.sh';
$rc['start'] = '/usr/local/sbin/squid -D';
@@ -681,6 +683,9 @@ function squid_resync() {
$conf .= squid_resync_auth();
squid_resync_users();
+ /* make sure pinger is executable */
+ exec("chmod a+x /usr/local/libexec/squid/pinger");
+
file_put_contents(SQUID_CONFBASE . '/squid.conf', $conf);
if(!is_dir("/var/squid/cache/01/01")) {