install_update_dovecot.sh: stop dovecot service *after* compiling, not before.

This commit is contained in:
Christoph 2020-04-25 16:57:35 +02:00
parent c5654d3d84
commit 6576a6a12c

View File

@ -735,6 +735,17 @@ else
fatal Configuring dovecot failed
fi
## - Compile dovecot
## -
echononl "\tCompile Dovecot Sources.."
make > ${_log_dir}/dovecot-${_version}-make.log 2>&1 || clean_up 1
if [ "$?" = 0 ]; then
echo -e "$rc_done"
else
echo -e "$rc_failed"
fatal Compiling dovecot failed
fi
## -----------------
## --- Stop dovecot if running
@ -756,17 +767,6 @@ else
echo -e "$rc_skipped"
fi
## - Compile dovecot
## -
echononl "\tCompile Dovecot Sources.."
make > ${_log_dir}/dovecot-${_version}-make.log 2>&1 || clean_up 1
if [ "$?" = 0 ]; then
echo -e "$rc_done"
else
echo -e "$rc_failed"
fatal Compiling dovecot failed
fi
## - Install dovecot
## -
echononl "\tInstall Dovecot into Folder /usr/local/dovecot-${_version}"