From 4ce40c722b7271f431d24a41651cf1d834706367 Mon Sep 17 00:00:00 2001 From: PiBa-NL Date: Mon, 25 May 2015 14:08:08 +0200 Subject: haproxy-devel, use unlink_if_exists instead of exec(rm ..) --- config/haproxy-devel/pkg/haproxy.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/haproxy-devel') 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); -- cgit v1.2.3