Fix error at stopping dovecot service
This commit is contained in:
parent
4d165fbb9b
commit
dedbbfb707
@ -467,9 +467,10 @@ fi
|
|||||||
|
|
||||||
## -----------------
|
## -----------------
|
||||||
## --- Stop dovecot if running
|
## --- Stop dovecot if running
|
||||||
echo
|
|
||||||
|
echo ""
|
||||||
echononl "\tStop dovecot service.."
|
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
|
if $systemd_support ; then
|
||||||
systemctl stop dovecot > /dev/null 2>&1
|
systemctl stop dovecot > /dev/null 2>&1
|
||||||
else
|
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"
|
error "Stopping dovecot service failed"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo -e "$rc_failed"
|
echo -e "$rc_skipped"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## -----------------
|
## -----------------
|
||||||
## --- Install Base System
|
## --- Install Base System
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user