aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authordoktornotor <notordoktor@gmail.com>2015-12-11 15:09:57 +0100
committerdoktornotor <notordoktor@gmail.com>2015-12-11 15:09:57 +0100
commit23bc212ff72f478ab7ca909333fb7a0a75a176e1 (patch)
tree46e0831c240c54a783ea87e47443b155423d2a55 /config
parentdcc68137b44ee8f82f4e71f6650fc1cec5fd8c6b (diff)
downloadpfsense-packages-23bc212ff72f478ab7ca909333fb7a0a75a176e1.tar.gz
pfsense-packages-23bc212ff72f478ab7ca909333fb7a0a75a176e1.tar.bz2
pfsense-packages-23bc212ff72f478ab7ca909333fb7a0a75a176e1.zip
Don't create a symlink when it already exists
Diffstat (limited to 'config')
-rw-r--r--config/sarg/sarg.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/sarg/sarg.inc b/config/sarg/sarg.inc
index 22e70c95..253dab9d 100644
--- a/config/sarg/sarg.inc
+++ b/config/sarg/sarg.inc
@@ -94,7 +94,9 @@ function sarg_check_dirs() {
if (is_dir($pbidir) && !is_link($pbidir)) {
rmdir_recursive($pbidir);
}
- symlink("/usr/local/sarg-reports", "{$pbidir}");
+ if (!is_link($pbidir)) {
+ symlink("/usr/local/sarg-reports", "{$pbidir}");
+ }
}
// images