aboutsummaryrefslogtreecommitdiffstats
path: root/packages/pfstat.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/pfstat.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/pfstat.xml')
-rw-r--r--packages/pfstat.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/pfstat.xml b/packages/pfstat.xml
index ec4756fd..a4cbb1ee 100644
--- a/packages/pfstat.xml
+++ b/packages/pfstat.xml
@@ -268,8 +268,8 @@
system("/usr/sbin/cron 2>/dev/null");
</custom_php_install_command>
<custom_php_deinstall_command>
- system("rm /usr/local/etc/pfstat 2>/dev/null");
- system("rm -rf /usr/local/www/pfstat* 2>/dev/null");
+ unlink_if_exists("/usr/local/etc/pfstat");
+ rmdir_recursive("/usr/local/www/pfstat");
</custom_php_deinstall_command>
<!--
<custom_php_install_command>