diff options
author | PiBa-NL <pba_2k3@yahoo.com> | 2015-05-25 14:08:08 +0200 |
---|---|---|
committer | PiBa-NL <pba_2k3@yahoo.com> | 2015-05-25 14:08:08 +0200 |
commit | 4ce40c722b7271f431d24a41651cf1d834706367 (patch) | |
tree | 4dca8c73ae80965a15028142b3cb8ec28382f241 /config | |
parent | 7fa9bacd55f24141ba030cce6140c0423c9a3ed6 (diff) | |
download | pfsense-packages-4ce40c722b7271f431d24a41651cf1d834706367.tar.gz pfsense-packages-4ce40c722b7271f431d24a41651cf1d834706367.tar.bz2 pfsense-packages-4ce40c722b7271f431d24a41651cf1d834706367.zip |
haproxy-devel, use unlink_if_exists instead of exec(rm ..)
Diffstat (limited to 'config')
-rw-r--r-- | config/haproxy-devel/pkg/haproxy.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/haproxy-devel/pkg/haproxy.inc b/config/haproxy-devel/pkg/haproxy.inc index 0c8ae4d6..f59fc59b 100644 --- a/config/haproxy-devel/pkg/haproxy.inc +++ b/config/haproxy-devel/pkg/haproxy.inc @@ -345,8 +345,8 @@ function haproxy_custom_php_deinstall_command() { update_output_window($static_output); $static_output .= "HAProxy, deleting haproxy webgui\n"; update_output_window($static_output); - exec("rm /usr/local/etc/rc.d/haproxy.sh"); - exec("rm /etc/rc.haproxy_ocsp.sh"); + unlink_if_exists("/usr/local/etc/rc.d/haproxy.sh"); + unlink_if_exists("/etc/rc.haproxy_ocsp.sh"); $static_output .= "HAProxy, installing cron job if needed\n"; update_output_window($static_output); haproxy_install_cron(false); |