diff options
author | Colin Smith <colin@pfsense.org> | 2005-03-21 04:32:13 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-03-21 04:32:13 +0000 |
commit | c34fb5342a439e59323e34185727f182e52801e2 (patch) | |
tree | 3484cd4248a3e8a09a325892254e290a0e7dbef7 /packages/hula.xml | |
parent | 1edd830d8e1dcf41b9f9426e27c387c7b0616f22 (diff) | |
download | pfsense-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/hula.xml')
-rw-r--r-- | packages/hula.xml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/hula.xml b/packages/hula.xml index b76ddacb..b945e023 100644 --- a/packages/hula.xml +++ b/packages/hula.xml @@ -47,12 +47,11 @@ config_unlock(); </custom_add_php_command> <custom_php_deinstall_command> - system("/usr/bin/killall -9 hulamanager"); - system("rm -rf /usr/local/hula"); - system("rm /usr/local/etc/rc.d/hula.sh"); + mwexec("/usr/bin/killall -9 hulamanager"); + rmdir_recursive("/usr/local/hula"); + unlink_if_exists("/usr/local/etc/rc.d/hula.sh"); </custom_php_deinstall_command> <custom_php_install_command> - system("rm /usr/local/etc/rc.d/hula.sh"); $fout = fopen("/usr/local/etc/rc.d/hula.sh","w"); fwrite($fout, "#!/bin/sh\n\n"); fwrite($fout, "/sbin/mount -t linprocfs linprocfs /proc\n"); |