aboutsummaryrefslogtreecommitdiffstats
path: root/packages/spamd.xml
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-03-21 04:32:13 +0000
committerColin Smith <colin@pfsense.org>2005-03-21 04:32:13 +0000
commitc34fb5342a439e59323e34185727f182e52801e2 (patch)
tree3484cd4248a3e8a09a325892254e290a0e7dbef7 /packages/spamd.xml
parent1edd830d8e1dcf41b9f9426e27c387c7b0616f22 (diff)
downloadpfsense-packages-c34fb5342a439e59323e34185727f182e52801e2.tar.gz
pfsense-packages-c34fb5342a439e59323e34185727f182e52801e2.tar.bz2
pfsense-packages-c34fb5342a439e59323e34185727f182e52801e2.zip
Remove unnecessary calls to rm - use unlink_if_exists or rmdir_recursive.
Diffstat (limited to 'packages/spamd.xml')
-rw-r--r--packages/spamd.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/spamd.xml b/packages/spamd.xml
index 625150e3..f34502e7 100644
--- a/packages/spamd.xml
+++ b/packages/spamd.xml
@@ -153,6 +153,7 @@
system("/usr/local/etc/rc.d/spamd 2>/dev/null");
</custom_php_install_command>
<custom_php_deinstall_command>
- system("/bin/rm /usr/local/pkg/spamd* /usr/local/www/spam*");
+ unlink_if_exists("/usr/local/pkg/spamd*");
+ unlink_if_exists("/usr/local/www/spam*");
</custom_php_deinstall_command>
</packagegui>