diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2006-09-29 20:18:48 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2006-09-29 20:18:48 +0000 |
commit | 90d83efde59f9f7b30626e8c90af2250c916202b (patch) | |
tree | 9b3b9bf7aeff10ddd228177b479f012674d08dbd /packages | |
parent | 0a176a018db0aee60d2fbbb4279ab377fc63f1a2 (diff) | |
download | pfsense-packages-90d83efde59f9f7b30626e8c90af2250c916202b.tar.gz pfsense-packages-90d83efde59f9f7b30626e8c90af2250c916202b.tar.bz2 pfsense-packages-90d83efde59f9f7b30626e8c90af2250c916202b.zip |
Make sure /usr/local/libexec/squid/pinger is executable to avoid this error:
2006/09/29 14:06:07| ipcCreate: /usr/local/libexec/squid/pinger: (13) Permission denied
Thanks to Free_The_Mallocs for the bug report.
Diffstat (limited to 'packages')
-rw-r--r-- | packages/squid.inc | 5 |
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")) { |