Fix remove sendmail

This commit is contained in:
Edi Septriyanto
2022-05-04 09:31:49 +07:00
parent d55636c8b4
commit 6ef92d07b3

View File

@@ -39,6 +39,13 @@ function install_postfix() {
if [[ ${DO_INSTALL_POSTFIX} == y* || ${DO_INSTALL_POSTFIX} == Y* ]]; then
echo "Installing Postfix Mail-Transfer Agent..."
if [[ -n $(command -v sendmail) ]]; then
echo "Remove existing sendmail install..."
run service sendmail stop && \
run update-rc.d -f sendmail remove && \
run apt-get remove -qq -y sendmail
fi
run apt-get install -qq -y mailutils postfix
# Configure Postfix.