aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid3
diff options
context:
space:
mode:
Diffstat (limited to 'config/squid3')
-rwxr-xr-xconfig/squid3/34/squid.inc6
-rw-r--r--config/squid3/34/squid.xml2
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 @@
<item>https://packages.pfsense.org/packages/config/squid3/34/pkg_squid.inc</item>
</additional_files_needed>
<additional_files_needed>
- <prefix>/usr/local/pkg/</prefix>
+ <prefix>/usr/local/bin/</prefix>
<chmod>0755</chmod>
<item>https://packages.pfsense.org/packages/config/squid3/34/check_ip.php</item>
</additional_files_needed>