aboutsummaryrefslogtreecommitdiffstats
path: root/config/squid3
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-10-01 14:31:04 +0200
committerdoktornotor <notordoktor@gmail.com>2015-10-01 14:31:04 +0200
commit330057b59ad547c3ed9b6c0c80f44808bd36e720 (patch)
tree5083d876a4478f31d95809d23be10cfbeca51564 /config/squid3
parent3a44ec003327d054620bd151006e742864080940 (diff)
downloadpfsense-packages-330057b59ad547c3ed9b6c0c80f44808bd36e720.tar.gz
pfsense-packages-330057b59ad547c3ed9b6c0c80f44808bd36e720.tar.bz2
pfsense-packages-330057b59ad547c3ed9b6c0c80f44808bd36e720.zip
Mute rename() to stop spitting out useless junk in console...
Diffstat (limited to 'config/squid3')
-rwxr-xr-xconfig/squid3/34/squid.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc
index e286b37d..692c489f 100755
--- a/config/squid3/34/squid.inc
+++ b/config/squid3/34/squid.inc
@@ -153,7 +153,7 @@ function squid_dash_z($cache_action = 'none') {
if (is_service_running('squid')) {
stop_service("squid");
}
- rename($cachedir, "{$cachedir}.old");
+ @rename($cachedir, "{$cachedir}.old");
mwexec_bg("/bin/rm -rf {$cachedir}.old");
squid_restart_services();
} else {
@@ -174,7 +174,7 @@ function squid_dash_z($cache_action = 'none') {
}
if (is_dir($cachedir)) {
if (substr($cachedir, 0, 11) === "/var/squid/") {
- rename($cachedir, "{$cachedir}.old");
+ @rename($cachedir, "{$cachedir}.old");
mwexec_bg("/bin/rm -rf {$cachedir}.old");
} else {
log_error("Will NOT delete Squid cache dir '{$cachedir}' since it is not located under /var/squid. Delete manually if required.");