Files
LEMPer/scripts/install_postfix.sh
Edi Septriyanto 70f15b7497 initial commit
2017-08-31 00:40:34 +07:00

21 lines
450 B
Bash
Executable File

#!/usr/bin/env bash
# Install Postfix mail server
function install_postfix {
echo "Installing Postfix Mail Server..."
apt-get install -y mailutils postfix
# Update local time
apt-get install -y ntpdate
ntpdate -d cn.pool.ntp.org
}
header_msg
echo -n "Do you want to install Postfix Mail Server? [Y/n]: "
read pfinstall
if [[ "$pfinstall" == "Y" || "$pfinstall" == "y" || "$pfinstall" == "yes" ]]; then
install_postfix
fi