mirror of
https://github.com/joglomedia/LEMPer.git
synced 2026-04-11 23:48:19 +00:00
21 lines
450 B
Bash
Executable File
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
|