diff options
author | Renato Botelho <garga@FreeBSD.org> | 2015-05-06 08:40:42 -0300 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2015-05-06 08:40:42 -0300 |
commit | 7bf30eb704d309353cacd4b34bde6bb6bfee4cad (patch) | |
tree | d1bfba58fd9c4f7005b16833ffadd696bc35f78a /config/squid3/34/squid.inc | |
parent | 45452e58e23b67e5d85f53f39a7fe22cb4ccc66a (diff) | |
download | pfsense-packages-7bf30eb704d309353cacd4b34bde6bb6bfee4cad.tar.gz pfsense-packages-7bf30eb704d309353cacd4b34bde6bb6bfee4cad.tar.bz2 pfsense-packages-7bf30eb704d309353cacd4b34bde6bb6bfee4cad.zip |
Install check_ip.php direct to /usr/local/bin, and, on 2.2, create a symlink inside PBI directory
Diffstat (limited to 'config/squid3/34/squid.inc')
-rwxr-xr-x | config/squid3/34/squid.inc | 6 |
1 files changed, 4 insertions, 2 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") { |