From 9f25db73c4ac6b86eb839f10e19a650185b41a0e Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 29 Sep 2015 14:17:40 -0300 Subject: Call exit after detect another instance is already running, otherwise it would end up deleting pid file --- src/usr/local/sbin/pfSense-upgrade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/usr/local/sbin') diff --git a/src/usr/local/sbin/pfSense-upgrade b/src/usr/local/sbin/pfSense-upgrade index 9f22bd2..88e5cc9 100755 --- a/src/usr/local/sbin/pfSense-upgrade +++ b/src/usr/local/sbin/pfSense-upgrade @@ -421,7 +421,7 @@ done if pgrep -qF ${pid_file} >/dev/null 2>&1; then echo "Another instance is already running... Aborting!" - _exit 1 + exit 1 fi echo $$ > ${pid_file} -- cgit v1.1