diff --git a/install_update_dovecot.sh b/install_update_dovecot.sh index 91df580..caf04fb 100755 --- a/install_update_dovecot.sh +++ b/install_update_dovecot.sh @@ -467,9 +467,10 @@ fi ## ----------------- ## --- Stop dovecot if running -echo + +echo "" echononl "\tStop dovecot service.." -if ps ax 2> /dev/null | grep -q -E "/usr/local/dovecot[0-9.-]*/sbin/dovecot" > /dev/null 2>&1 +if ps ax 2> /dev/null | grep -q -E "/usr/local/dovecot[0-9.-]*/sbin/dovecot" > /dev/null 2>&1 ; then if $systemd_support ; then systemctl stop dovecot > /dev/null 2>&1 else @@ -482,11 +483,10 @@ if ps ax 2> /dev/null | grep -q -E "/usr/local/dovecot[0-9.-]*/sbin/dovecot" > / error "Stopping dovecot service failed" fi else - echo -e "$rc_failed" + echo -e "$rc_skipped" fi - ## ----------------- ## --- Install Base System