I started to code the simple first Lines.
Code:
#!/bin/bash
########################
# #
# ispCP Maia-Installer #
# v0.1 #
########################
DATE=`date +%Y%m%d`
clear
echo ""
echo "++++++++++++++++++++++++++++++++++++++"
echo "Welcome to ispCP Omega Maia-Installer."
echo "++++++++++++++++++++++++++++++++++++++"
echo ""
# Checking if ispCP is installed on the System
if test ! -d /var/www/ispcp
then
echo "You have no ispCP Omega installed on your Server!"
echo "The installation abort."
exit
fi
echo "Start to install Maia on this ispCP System!"
echo ""
echo "Install needed packages..."
echo ""
apt-get update && apt-get upgrade
apt-get install libdbd-mysql-perl libdbi-perl libphp-jpgraph libossp-uuid-perl
echo ""
echo "Upgrade pear now..."
echo ""
pear upgrade-all
pear install Log Mail_Mime File Date DB DB_Pager Net_Sieve Net_Pop3
pear -d preferred_state=alpha install Image_Color Image_Canvas Image_Graph Numbers_Roman Numbers_Words
pear install Pager Net_SMTP Auth_SASL
echo ""
echo "Stoping Postfix now..."
echo ""
/etc/init.d/postfix stop
echo ""
echo "Installing AMaVis now..."
echo ""
apt-get install amavisd-new spamassassin clamav clamav-daemon
echo ""
echo "" Creating a backup file...
cp /etc/postfix/main.cf /etc/postfix/main.cf.org
# HERE WE SHOULD REMOVE THE "#" IN FRONT OF content_filter = amavis:[127.0.0.1]:10024 in main.cf
# BUT HOW TO DO THIS THE BEST WAY ?
echo ""
echo "Download AMaVis"
echo ""
cd /etc/amavis
wget http://www200.pair.com/mecham/amavisd.conf.maia
mv amavisd.conf.maia amavisd.conf
To be continued...
Greez BeNe