Update linupx-scripts.sh
This commit is contained in:
@@ -451,6 +451,36 @@ PYTHON3UPGRADE(){
|
|||||||
SCRIPT_MENU;;
|
SCRIPT_MENU;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
POSTFIX_INSTALL(){
|
||||||
|
read -n 1 -p "Are you sure you wish to install Postfix (Y/n)?" choice
|
||||||
|
case "$choice" in
|
||||||
|
[Nn]) INSTALL_MENU;;
|
||||||
|
* )
|
||||||
|
|
||||||
|
$APTFUNC install -y postfix
|
||||||
|
cd /etc/postfix
|
||||||
|
service stop postfix
|
||||||
|
mv /etc/postfix/main.cf /etc/postfix/main.cf.bak
|
||||||
|
wget https://git.schroedercity.com/voltron/Misc-Scripts/raw/branch/master/defaults/main.cf -O /etc/postfix/main.cf
|
||||||
|
wget https://git.schroedercity.com/voltron/Misc-Scripts/raw/branch/master/defaults/sender_canonical -O /etc/postfix/sender_canonical
|
||||||
|
|
||||||
|
read -p "Server hostname: " pfhostname
|
||||||
|
echo ""
|
||||||
|
read -p "Default from email (portion before @scity.us): " pffromemail
|
||||||
|
echo ""
|
||||||
|
|
||||||
|
sed -i "s/<<HOSTNAME>>/${pfhostname}/g" main.cf
|
||||||
|
sed -i "s/<<FROMEMAIL>>/${pffromemail}/g"
|
||||||
|
|
||||||
|
service postfix start
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo -e "${Green}Postfix has been Installed${Color_Off}"
|
||||||
|
if [ ${action-x} ]; then exit 0; fi
|
||||||
|
read -n 1 -s -p "Press any key to continue"
|
||||||
|
SCRIPT_MENU;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
BASHRC_INSTALL(){
|
BASHRC_INSTALL(){
|
||||||
echo -e "${Green}Installing root/.bashrc${Color_Off}"
|
echo -e "${Green}Installing root/.bashrc${Color_Off}"
|
||||||
/usr/bin/wget -O /root/.bashrc https://git.schroedercity.com/voltron/Misc-Scripts/raw/branch/master/bashrc
|
/usr/bin/wget -O /root/.bashrc https://git.schroedercity.com/voltron/Misc-Scripts/raw/branch/master/bashrc
|
||||||
|
|||||||
Reference in New Issue
Block a user