From 7bf30eb704d309353cacd4b34bde6bb6bfee4cad Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Wed, 6 May 2015 08:40:42 -0300 Subject: Install check_ip.php direct to /usr/local/bin, and, on 2.2, create a symlink inside PBI directory --- config/squid3/34/squid.inc | 6 ++++-- config/squid3/34/squid.xml | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc index ee1d8b97..63db45b8 100755 --- a/config/squid3/34/squid.inc +++ b/config/squid3/34/squid.inc @@ -181,8 +181,10 @@ function squid_install_command() { if (is_array($config['installedpackages']['squid']['config'])) $settingsgen = $config['installedpackages']['squid']['config'][0]; - if (file_exists("/usr/local/pkg/check_ip.php")) - rename("/usr/local/pkg/check_ip.php", SQUID_BASE . "/bin/check_ip.php"); + if (SQUID_BASE != '/usr/local' && + file_exists('/usr/local/bin/check_ip.php') && + !file_exists(SQUID_BASE . '/bin/check_ip.php')) + symlink("/usr/local/bin/check_ip.php", SQUID_BASE . "/bin/check_ip.php"); /* Set storage system */ if ($g['platform'] == "nanobsd") { diff --git a/config/squid3/34/squid.xml b/config/squid3/34/squid.xml index 57dfc938..3f869f6e 100644 --- a/config/squid3/34/squid.xml +++ b/config/squid3/34/squid.xml @@ -249,7 +249,7 @@ https://packages.pfsense.org/packages/config/squid3/34/pkg_squid.inc - /usr/local/pkg/ + /usr/local/bin/ 0755 https://packages.pfsense.org/packages/config/squid3/34/check_ip.php -- cgit v1.2.3