diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2014-09-30 19:54:54 +0200 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.comm> | 2015-02-24 21:09:51 +0100 |
commit | ca670f24bdb0ec7488fbeeeaed14fc82f8e50a5e (patch) | |
tree | efd19d07dcee69f1839e4548f068ec392010c770 /config | |
parent | 7eb458b55f1185e85d0c3e495d00aa65cfc6beca (diff) | |
download | pfsense-packages-ca670f24bdb0ec7488fbeeeaed14fc82f8e50a5e.tar.gz pfsense-packages-ca670f24bdb0ec7488fbeeeaed14fc82f8e50a5e.tar.bz2 pfsense-packages-ca670f24bdb0ec7488fbeeeaed14fc82f8e50a5e.zip |
spamd, replace the shell calls by unlink_if_exists() and symlink()
Diffstat (limited to 'config')
-rw-r--r-- | config/spamd/spamd.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/spamd/spamd.inc b/config/spamd/spamd.inc index d55dc132..e09b2b7f 100644 --- a/config/spamd/spamd.inc +++ b/config/spamd/spamd.inc @@ -160,8 +160,8 @@ function sync_package_spamd() { log_error("Restart cron"); mwexec("killall -HUP cron"); log_error("Setting up spamd.conf symlink"); - mwexec("rm -f $localpath/etc/spamd/spamd.conf"); - mwexec("ln -s /etc/spamd.conf $localpath/etc/spamd/spamd.conf"); + unlink_if_exists("$localpath/etc/spamd/spamd.conf"); + symlink("/etc/spamd.conf", "$localpath/etc/spamd/spamd.conf"); log_error("Stopping spamd"); mwexec("/usr/local/etc/rc.d/spamd.sh stop"); |