#!/bin/bash

echo '

 _ _ _   _ _____
| _,\  V  |_   _/  \ 
| v_/ \_/ | | || /\ |
|_| |_| |_| |_||_||_| v5

' 

chmod 777 ./interspire.sh
chmod 777 ./mailwizz.sh
chmod 777 ./mailwizzonly.sh
chmod 777 ./mumara.sh
chmod 777 ./mumaraesp.sh
chmod 777 ./pmta.sh
chmod 777 ./sparkmail.sh
rm -rf /root/1centosupdate.sh
rm -rf /root/2dnsupdate.sh
rm -rf /root/3repoupdate.sh
rm -rf /root/4dbintil.sh
rm -rf /root/5intrspr.sh
rm -rf /root/6ipconfig.sh
rm -rf /root/7coreupdate.sh
rm -rf /root/8mtamaster.sh
rm -rf /root/9proxysetup.sh
rm -rf /root/10dmarcsys.sh
rm -rf /root/11dkimpuyr.sh
rm -rf /root/12spfupdate.sh
rm -rf /root/NewtonPMTAv5.sh
rm -rf /root/installv5.sh
rm -rf /root/NPMTAInstallv5.sh
rm -rf /root/newtonpmtav5.zip



# Selection menu items goes here
APPLICATION="Interspire Mailwizz Mailwizz-Only Mumara Mumara-ESP NewtonSMTP-Only quit"

select options in $APPLICATION; do

# here using the if statements you can perform the required  operation
if [ "$options" = "Interspire" ]; then
    echo "$options Installer Initialising ..."	
    ./interspire.sh

elif [ "$options" = "Mailwizz" ]; then
    echo "$options Installer Initialising ..."
    ./mailwizz.sh

elif [ "$options" = "Mailwizz-Only" ]; then
    echo "$options Installer Initialising ..."
    ./mailwizzonly.sh
	
elif [ "$options" = "Mumara" ]; then
    echo "$options Installer Initialising ..."
    ./mumara.sh

elif [ "$options" = "Mumara-ESP" ]; then
    echo "$options Installer Initialising ..."
    ./mumaraesp.sh	

elif [ "$options" = "NewtonSMTP-Only" ]; then
        echo "$options Installer Initialising ..."
		./pmta.sh

elif [ "$options" = "quit" ]; then
        echo "GoodBye ..."
    exit 0

# if something else is selected, show the menu again
else
    
    echo "ERROR please select the correct option"

fi
done