diff options
author | doktornotor <notordoktor@gmail.com> | 2015-12-11 15:09:57 +0100 |
---|---|---|
committer | doktornotor <notordoktor@gmail.com> | 2015-12-11 15:09:57 +0100 |
commit | 23bc212ff72f478ab7ca909333fb7a0a75a176e1 (patch) | |
tree | 46e0831c240c54a783ea87e47443b155423d2a55 /config/sarg | |
parent | dcc68137b44ee8f82f4e71f6650fc1cec5fd8c6b (diff) | |
download | pfsense-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/sarg')
-rw-r--r-- | config/sarg/sarg.inc | 4 |
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 |