Hello Community,
we talked in the German Corner about the Maia Template.
The Dev´s will release the Template just when ispCP support Maia directly without any HowTo out of the Box.
I created some times ago a HowTo in the Wiki about it
->
http://www.isp-control.net/ispcp/wiki/maia
The Dev´s have not much time and working on ispCP to release the RC3.
So maybe we as Community can start to write a bash script for this.
What do you think about it ?
Has some one of you skills in bash-script to start?
I and the community will support them.
You can find the Script here -->
http://www.isp-control.net/ispcp/wiki/us...ainstaller
It is still under Development!
Please help us if you can!
Greez BeNe
Thank you for the important contribution that the whole instalation takes very long time, at least with the
aptitude install apache2 apache2-mpm-worker apache2.2-common apache2-utils bind9 bzip2 courier courier-base courier courier courier- pop diff dnsutils gcc postgrey gzip iptables libapache2-mod-fastcgi libberkeleydb-perl libc6-dev libcrypt-blowfish-perl libcrypt-cbc-perl libcrypt-passwdmd5-perl libdate-calc-perl libdate-manip-perl libdbd libdbi- perl libio-stringy-perl libmail-sendmail-perl libmailtools libmcrypt4 libmd5-perl libmime-perl libnet-dns-perl libnet-netmask-perl libnet-perl libnet-smtp-server-perl libperl5.8 libsasl2 libsasl2 libsnmp- session-perl libterm libterm-readpassword-perl libtimedate-perl libmysqlclient15off make mysql mysql mysql original-awk patch perl perl modules php4 php4-cgi php4 php4-mcrypt php4- mysql php4-pear php5-cgi php5-gd php5-imap php5-mcrypt php5-mhash php5-mysql postfix postfix postgrey procmail proftpd-mysql exhibit sasl2-bin ssh tar wget
could at least offer a script
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
The script, I do nothing, I could by the rest of this script?
I do not really understand ?
Do you want to help in writing this script ?
Your are Welcome. I will post the first lines here in the Forum.
Maybe we should do this in the Wiki - here can everybody do some changes...
The next is - i am not sure if this structure that i created is very good ?
This is not my first script - but never had so much lines and work to do...
Greez BeNe
I would give my best, but I know a lot, unfortunately not. With WIKI is incidentally a good idea
I created a Site in the Wiki for the Installer -->
http://www.isp-control.net/ispcp/wiki/us...ainstaller
Hope this is OK. Because every change is displayed in the Timeline.
If this would be a really Problem we need a new solution, so that everbody can make changes.
PLEASE FEEL FREE TO IMPROVE THIS SCRIPT IN ANY WAY.
I JUST WROTE SOME LINES...
Greez BeNe
I once did some fancy things with bash (user administration for hosting (web & mail), dns administration inkl. copy to 2nd - you see, some sort of ispcp-in-tha-bash :-)
I'll try to put some more lines to your beginning...
/Joxi
I think it would be a good idea to have at least templates for the maia config files
maia.conf, amavisd.conf and config.php
we can substitute the needed variables in there with the user input...
That way it'll be a bit like it works for the rest of ispCP.
I can´t add this in the Wiki
Code:
# Start MySQL before AMaVis
echo ""
echo "Change MySQL & AMaViS startup"
echo ""
update-rc.d -f mysql remove
update-rc.d mysql start 18 2 3 4 5 . stop 22 0 1 6 .
Submission rejected as potential spam (Akismet says content is spam)
Greez BeNe