From dedbbfb70734ef49eb733db7cae78cd0d14b4cc9 Mon Sep 17 00:00:00 2001 From: Christoph Date: Tue, 26 Dec 2017 03:06:43 +0100 Subject: [PATCH] Fix error at stopping dovecot service --- install_update_dovecot.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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