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/pure-ftpdsettings.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/pure-ftpdsettings.xml')
-rw-r--r-- | packages/pure-ftpdsettings.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/pure-ftpdsettings.xml b/packages/pure-ftpdsettings.xml index 1fe39d9b..a58b0651 100644 --- a/packages/pure-ftpdsettings.xml +++ b/packages/pure-ftpdsettings.xml @@ -89,7 +89,7 @@ <custom_add_php_command> conf_mount_rw(); config_lock(); - mwexec("rm /usr/local/etc/rc.d/pure-ftp*"); + unlink_if_exists("/usr/local/etc/rc.d/pure-ftp*"); $fout = fopen("/usr/local/etc/rc.d/pure-ftpd.sh","w"); fwrite($fout, "#!/bin/sh\n\n"); $startline = "/usr/local/sbin/pure-ftpd"; |