#!/bin/sh ################################################################## #SUPPORT AND DONATE LINK FOR UPDATE SCRIPT HERE ONLY #http://www.web4host.net/tools.php ################################################################## # # GNU GENERAL PUBLIC LICENSE # Version 2, June 1991 # Copyright (C) 2006,2007 Free Software Foundation, Inc. # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Everyone is permitted to copy and distribute verbatim copies # of this license document, but changing it is not allowed. # # Update script made by Wael Isa # H188, R4008, Arad 240, Kingdom of Bahrain # http://www.web4host.net # Version: 1.6 # Release Date: 1 / 9 / 2006 # ################################################################## #SUPPORT AND DONATE LINK FOR UPDATE SCRIPT HERE ONLY #http://www.web4host.net/tools.php ################################################################## # **** USE IT YOUR OWN RISKS **** ################################################################## # Please don't edit this script or edit this script to kill you box. ################################################################## # Date & Update script version INSTALLDIR=/usr/local/updatescript MIRROR=http://tools.web4host.net MIRRORFILES=http://els.web4host.net MIRRORDA=http://files.directadmin.com/services/custombuild PHPIZE1=/usr/local/bin/phpize PHPIZE2=/usr/local/php5/bin/phpize # Load mirror MIRRORCONF=$INSTALLDIR/mirror.conf if [ -f "$MIRRORCONF" ] && [ ! "$MIRRORCONF" == "" ]; then source $MIRRORCONF else wget -O $INSTALLDIR/mirror.conf $MIRROR/mirror.tmp echo "\mirror.conf downloaded." fi chmod 700 mirror.conf $INSTALLDIR/mirror.conf # Load versions MIRRORVER=$INSTALLDIR/versions if [ -f "$MIRRORVER" ] && [ ! "$MIRRORVER" == "" ]; then source $MIRRORVER else wget -O $INSTALLDIR/versions $MIRROR/versions.tmp echo "\versions file downloaded." fi chmod 700 versions $INSTALLDIR/versions BASE_PATH=$INSTALLDIR if [ "`md5sum $INSTALLDIR/update.script | cut -d ' ' -f 1`" = "`grep update.script-core -m1 $INSTALLDIR/versions | cut -d ':' -f 3`" ]; then echo "" else echo "update.script core invalid. Aborting," echo "Download update.script again." exit fi ## Make sure the script is being executed as root rootcheck() { if [ "${UID}" != "0" ]; then echo "This program must be run as root. Exiting." exit 0 fi } ## Binary locations WGET=/usr/bin/wget REPLACE=/usr/bin/replace GREP=/bin/grep if [ -e /etc/debian_version ]; then CUT=/usr/bin/cut else CUT=/bin/cut fi TAR=/bin/tar CAT=/bin/cat MD5SUM=/usr/bin/md5sum TAIL=/usr/bin/tail if [ -e /etc/debian_version ]; then AWK=/usr/bin/awk else AWK=/bin/awk fi HEAD=/usr/bin/head MKE2FS=/sbin/mke2fs RPM=/bin/rpm DPKG=/usr/bin/dpkg RM=/bin/rm MKDIR=/bin/mkdir ## Not so mandatory (but recommended atleast have one) binary location YUM=/usr/bin/yum UP2DATE=/usr/bin/up2date APTGET=/usr/bin/apt-get ## Architecture, Number of CPUs, and RAM if [ -e /etc/debian_version ]; then UNAMED=`uname -m` if [ "${UNAMED}" = "i686" ]; then ARCH=i386 else ARCH=x86_64 fi else ARCH=`uname -i` fi CPUTOTAL=`$GREP processor /proc/cpuinfo | wc -l | $AWK '{ print $1 }'` MEMTOTAL=`expr \`$GREP MemTotal /proc/meminfo | $AWK '{ print $2 }'\` / 1024` ## Get info for current and latest versions of software latestversionfunc() { export $1=`$GREP -m1 $2 $INSTALLDIR/versions | $CUT -d ':' -f 2` } latestmd5func() { export $1=`$GREP -m1 $2 $INSTALLDIR/versions | $CUT -d ':' -f 3` } supporteddistros(){ ## Make sure this is a supported distribution if [ -e /etc/redhat-release ]; then if [ "`${CAT} /etc/redhat-release | ${AWK} '{ print $1, $2, $3, $7 }'`" = "Red Hat Enterprise 3" ]; then DISTRO=RHEL3 elif [ "`${CAT} /etc/redhat-release | ${AWK} '{ print $1, $2, $3, $7 }'`" = "Red Hat Enterprise 4" ]; then DISTRO=RHEL4 elif [ "`${CAT} /etc/redhat-release | ${AWK} '{ print $1, $3 }' | ${CUT} -d '.' -f1`" = "CentOS 3" ]; then DISTRO=CENTOS3 elif [ "`${CAT} /etc/redhat-release | ${AWK} '{ print $1, $3 }' | ${CUT} -d '.' -f1`" = "CentOS 4" ]; then DISTRO=CENTOS4 elif [ "`${CAT} /etc/redhat-release | ${AWK} '{ print $1, $3 }' | ${CUT} -d '.' -f1`" = "CentOS 5" ]; then DISTRO=CENTOS5 elif [ "`${CAT} /etc/redhat-release | ${AWK} '{ print $1, $2 }'`" = "Fedora Core" ]; then DISTRO=FC`${CAT} /etc/redhat-release | ${AWK} '{ print $4 }'` elif [ "`${CAT} /etc/redhat-release | ${AWK} '{ print $1, $2 }'`" = "Fedora release" ]; then DISTRO=FC`${CAT} /etc/redhat-release | ${AWK} '{ print $3 }'` elif [ "`${CAT} /etc/redhat-release | ${AWK} '{ print $1, $2, $5 }'`" = "Red Hat 9" ]; then DISTRO=RH9 elif [ "`${CAT} /etc/redhat-release | ${AWK} '{ print $1, $2, $5 }' | ${CUT} -d '.' -f1`" = "Red Hat 7" ]; then DISTRO=RH7 fi elif [ ! -e /etc/redhat-release ]; then echo echo echo "##################################################################" echo "#" echo -e "# \e[1;37mUpdate.Script did not support your OS, Sorry\e[0m" echo "#" echo "##################################################################" echo echo exit fi } dodistrocheck(){ if [ -e /etc/redhat-release ]; then if [ "`${CAT} /etc/redhat-release | ${AWK} '{ print $1, $2, $3, $7 }'`" = "Red Hat Enterprise 3" ]; then echo "Your OS is: RedHat Enterprise Linux 3" elif [ "`${CAT} /etc/redhat-release | ${AWK} '{ print $1, $2, $3, $7 }'`" = "Red Hat Enterprise 4" ]; then echo "Your OS is: RedHat Enterprise Linux 4" elif [ "`${CAT} /etc/redhat-release | ${AWK} '{ print $1, $3 }' | ${CUT} -d '.' -f1`" = "CentOS 3" ]; then echo "Your OS is: CentOS 3" elif [ "`${CAT} /etc/redhat-release | ${AWK} '{ print $1, $3 }' | ${CUT} -d '.' -f1`" = "CentOS 4" ]; then echo "Your OS is: CentOS 4" elif [ "`${CAT} /etc/redhat-release | ${AWK} '{ print $1, $3 }' | ${CUT} -d '.' -f1`" = "CentOS 5" ]; then echo "Your OS is: CentOS 5" elif [ "`${CAT} /etc/redhat-release | ${AWK} '{ print $1, $2 }'`" = "Fedora Core" ]; then echo "Your OS is: Fedora Core `${CAT} /etc/redhat-release | ${AWK} '{ print $4 }'`" elif [ "`${CAT} /etc/redhat-release | ${AWK} '{ print $1, $2 }'`" = "Fedora release" ]; then echo "Your OS is: Fedora Core `${CAT} /etc/redhat-release | ${AWK} '{ print $3 }'`" elif [ "`${CAT} /etc/redhat-release | ${AWK} '{ print $1, $2, $5 }'`" = "Red Hat 9" ]; then echo "Your OS is: RedHat Linux 9" elif [ "`${CAT} /etc/redhat-release | ${AWK} '{ print $1, $2, $5 }' | ${CUT} -d '.' -f1`" = "Red Hat 7" ]; then echo "Your OS is: RedHat Linux 7" fi fi } ## Always perform rootcheck, supported distros and version file download before anything else rootcheck #supporteddistros #controlpanelcheck #checkversionsdown # No need its too old #if [ ${DISTRO} = "CENTOS1" ]; then #echo #echo #echo "##################################################################" #echo "#" #echo -e "# \e[1;37mUpdate.Script did not support your OS, Sorry\e[0m" #echo "#" #echo "##################################################################" #echo #echo # exit 1 #fi ################################################## showHelp() { echo echo "##################################################################" echo "#" echo -e "# \e[1;37mGNU GENERAL PUBLIC LICENSE\e[0m" echo -e "# \e[1;37mVersion 2, June 1991\e[0m" echo -e "# \e[1;37mCopyright (C) 2006,2007 Free Software Foundation, Inc.\e[0m" echo -e "# \e[1;37m51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\e[0m" echo -e "# \e[1;37mEveryone is permitted to copy and distribute verbatim copies\e[0m" echo -e "# \e[1;37mof this license document, but changing it is not allowed.\e[0m" echo "#" echo -e "# \e[1;37mUpdate script made by Wael Isa\e[0m" echo -e "# \e[1;37mH188, R4008, Arad 240, Kingdom of Bahrain\e[0m" echo -e "# \e[1;37mhttp://www.web4host.net\e[0m" echo -e "# \e[1;37mVersion: $USVersion\e[0m" echo -e "# \e[1;37mRelease Date: $SRDATE\e[0m" echo -e "# \e[1;37mUpdate Date : $SUDATE\e[0m" echo "#" echo "##################################################################" echo -e "# \e[1;37mSUPPORT AND DONATE LINK FOR UPDATE SCRIPT HERE ONLY\e[0m" echo -e "# \e[1;37mhttp://www.web4host.net/tools.php\e[0m" echo "##################################################################" echo -e "############### \e[1;37mUSE IT YOUR OWN RISKS\e[0m #############" echo "##################################################################" echo -e "######## \e[1;37mPlease don't edit this script or\e[0m ##########" echo -e "######## \e[1;37medit this script to kill you box.\e[0m ##########" echo "##################################################################" echo -e "#### \e[1;37mhit CTRL+C (^C) to abort or press enter to continue.....\e[0m ####" echo "##################################################################" read E echo echo -e " \e[1;37mInstall/Update to :-\e[0m" echo echo -e " To update \e[1;4;37mupdate.script\e[0m run:"; echo " $0 UPDATEME"; echo -e " To see release date and version."; echo " $0 DATE"; echo echo -e " To update \e[1;4;37mOpenssl $OPENSSL\e[0m run:"; echo " $0 OPENSSL"; echo -e " To update \e[1;4;37mOpenssh $OPENSSH\e[0m run:"; echo " $0 OPENSSH"; echo -e " To update \e[1;4;37mphpMyAdmin $PHPMYADMIN\e[0m run:"; echo " $0 PHPMYADMIN"; echo -e " To update \e[1;4;37mExim $EXIM tar.gz\e[0m run:"; echo " $0 EXIMTAR"; echo -e " To update \e[1;4;37mProFtp $PROFTP\e[0m run:"; echo " $0 PROFTP"; echo -e " To update \e[1;4;37mProFtp $PROFTP with Mod_Clamav $PROFTPModClamav\e[0m run:"; echo " $0 PROFTPMODCLAMAV"; echo -e " To update \e[1;4;37mSpam Assassin $SPAMASSASSIN\e[0m run:"; echo " $0 SPAMASSASSIN"; echo echo -e " To update \e[1;4;37mAVG Anti-Virus $AVG1-$AVG2 Free Edition\e[0m run:"; echo " $0 AVG"; echo -e " To update \e[1;4;37mClam Anti-Virus $CLAMAV\e[0m run:"; echo " $0 CLAMAV"; echo -e " To update \e[1;4;37mmod_clamav $MODCLAMAV\e[0m run:"; echo " $0 MODCLAMAV"; echo -e " To update \e[1;4;37mphp-clamav $PHPCLAMAV\e[0m run:"; echo " $0 PHPCLAMAV"; echo echo -e " To update \e[1;4;37mmod_antiloris $MODANTILORIS\e[0m run:"; echo " $0 MODANTILORIS"; echo -e " To update \e[1;4;37mMODsecurity $MODSECURITY2\e[0m run:"; echo " $0 MODsecurity2Apache2"; echo -e " To update \e[1;4;37mMODsecurity $MODSECURITY2 Rules\e[0m run:"; echo " $0 MODsecurity2Apache2Rules"; echo echo -e " To update \e[1;4;37mFreetype $FREETYPE\e[0m run:"; echo " $0 FREETYPE"; echo -e " To update \e[1;4;37mImageMagick $IMAGEMAGICK\e[0m run:"; echo " $0 IMAGEMAGICK"; echo -e " To update \e[1;4;37mGraphicsMagick $GRAPHICSMAGICK\e[0m run:"; echo " $0 GRAPHICSMAGICK"; echo -e " To update \e[1;4;37meAccelerator $EACCELERATOR\e[0m run:"; echo " $0 EACCELERATOR"; echo -e " To update \e[1;4;37mFFMPEG-php $FFMPEG\e[0m run:"; echo " $0 FFMPEG"; echo -e " To update \e[1;4;37mSuhosin $SUHOSIN\e[0m run:"; echo " $0 SUHOSIN"; echo -e " To update \e[1;4;37mIMAP $IMAP\e[0m run:"; echo " $0 IMAP"; echo echo -e " To update \e[1;4;37mSquirrelMail $SQUIRRELMAIL\e[0m run:"; echo " $0 SQUIRRELMAIL"; echo -e " To update \e[1;4;37mSquirrelMail language pack\e[0m run:"; echo " $0 SQUIRRELMAILLANG"; echo -e " To update \e[1;4;37mWebmin control panel $WEBMIN\e[0m run:"; echo " $0 WEBMIN"; #echo -e " To update \e[1;4;37mWebmin control panel $WEBMIN OS FreeBSD\e[0m run:"; #echo " $0 WEBMINFREEBSD"; echo -e " To update \e[1;4;37mMailScanner $MAILSCANNER\e[0m run:"; echo " $0 MAILSCANNER"; echo -e " To update \e[1;4;37mKISS My Firewall $KISS\e[0m run:"; echo " $0 KISS"; echo -e " To update \e[1;4;37mNoBody Check $NOBODYCHECK\e[0m run:"; echo " $0 NOBODYCHECK"; echo -e " To update \e[1;4;37mMRTG $MRTG\e[0m run:"; echo " $0 MRTG"; echo echo -e " To Clean this folder and update \e[1;4;37mupdate.script\e[0m run:"; echo " $0 CLEAN"; echo echo ""; } doSUPHPCHOWN() { chown webapps:webapps /var/www/html -R echo ""; echo ""; echo "chown folder /var/www/html DONE" ; exit } doUPDATEME() { mv $INSTALLDIR/mirror.conf /mirror.conf ; cd $INSTALLDIR wget -O $INSTALLDIR/licenses $MIRROR/licenses.tmp wget -O $INSTALLDIR/versions $MIRROR/versions.tmp wget -O $INSTALLDIR/update.script $MIRROR/update.script chmod 755 $INSTALLDIR/update.script ; echo ; echo ; cd $INSTALLDIR mv /mirror.conf $INSTALLDIR/mirror.conf echo ""; echo ""; echo "Run this to see release date and version ./update.script DATE" ; exit } doCLEAN() { mv $INSTALLDIR/mirror.conf /mirror.conf ; cd $INSTALLDIR rm -fr $INSTALLDIR/*.* ; rm -fr $INSTALLDIR/* wget -O $INSTALLDIR/licenses $MIRROR/licenses.tmp wget -O $INSTALLDIR/versions $MIRROR/versions.tmp wget -O $INSTALLDIR/update.script $MIRROR/update.script chmod 755 $INSTALLDIR/update.script ; echo ; echo ; cd $INSTALLDIR mv /mirror.conf $INSTALLDIR/mirror.conf echo ""; echo ""; echo "Run this to see release date and version ./update.script DATE" ; exit } doDATE() { echo ""; echo ""; echo "" echo "##################################################################" echo "#" echo -e "# \e[1;37mGNU GENERAL PUBLIC LICENSE\e[0m" echo -e "# \e[1;37mVersion 2, June 1991\e[0m" echo -e "# \e[1;37mCopyright (C) 2006,2007 Free Software Foundation, Inc.\e[0m" echo -e "# \e[1;37m51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA\e[0m" echo -e "# \e[1;37mEveryone is permitted to copy and distribute verbatim copies\e[0m" echo -e "# \e[1;37mof this license document, but changing it is not allowed.\e[0m" echo "#" echo -e "# \e[1;37mUpdate script made by Wael Isa\e[0m" echo -e "# \e[1;37mH188, R4008, Arad 240, Kingdom of Bahrain\e[0m" echo -e "# \e[1;37mhttp://www.web4host.net\e[0m" echo -e "# \e[1;37mVersion: $USVersion\e[0m" echo -e "# \e[1;37mRelease Date: $SRDATE\e[0m" echo -e "# \e[1;37mUpdate Date : $SUDATE\e[0m" echo "#" echo "##################################################################" echo -e "############### \e[1;37mUSE IT YOUR OWN RISKS\e[0m #############" echo "##################################################################" echo -e "######## \e[1;37mPlease don't edit this script or\e[0m ##########" echo -e "######## \e[1;37medit this script to kill you box.\e[0m ##########" echo "##################################################################" echo ""; echo ""; echo ""; exit } doOPENSSL() { supporteddistros ; cd $INSTALLDIR rm -rf openssl-*.tar.gz ; wget http://www.openssl.org/source/openssl-$OPENSSL.tar.gz if [ "`md5sum $INSTALLDIR/openssl-$OPENSSL.tar.gz | cut -d ' ' -f 1`" = "`grep OPENSSL-core -m1 $INSTALLDIR/versions | cut -d ':' -f 3`" ]; then echo "MD5 valid." else echo "MD5 invalid. Aborting." exit fi tar xvzf openssl-$OPENSSL.tar.gz cd openssl-$OPENSSL/ ; rm -rf /usr/lib/libssl.so.0 ; rm -rf /usr/lib/libssl.so ; rm -rf /lib/libssl.so.2 ; rm -rf /usr/lib/libcrypto.so.0 ./config --prefix=/usr no-threads shared ; make ; make test ; make install ; echo "/usr/local/ssl/lib" >> /etc/ld.so.conf ; /sbin/ldconfig -v #rm -f /lib/libssl.so.4 ; rm -f /usr/lib/libcrypto.so.0 ; ln -s /usr/lib/libssl.so.0.9.8 /lib/libssl.so.4 ; ln -s /usr/lib/libcrypto.so.0.9.8 /usr/lib/libcrypto.so.0 rm -f /lib/libssl.so.4 ; rm -f /usr/lib/libcrypto.so.0 ; ln -s /usr/lib/libssl.so.1.0.0 /lib/libssl.so.4 ; ln -s /usr/lib/libcrypto.so.1.0.0 /usr/lib/libcrypto.so.0 echo ; echo ; echo "Update to Openssl $OPENSSL done" } doOPENSSH() { supporteddistros ; cd $INSTALLDIR rm -rf openssh-*.tar.gz ; wget http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-$OPENSSH.tar.gz if [ "`md5sum $INSTALLDIR/openssh-$OPENSSH.tar.gz | cut -d ' ' -f 1`" = "`grep OPENSSH-core -m1 $INSTALLDIR/versions | cut -d ':' -f 3`" ]; then echo "MD5 valid." else echo "MD5 invalid. Aborting." exit fi tar -zxvf openssh-$OPENSSH.tar.gz #cd openssh-$OPENSSH ; ./configure --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc/ssh --with-md5-passwords cd openssh-$OPENSSH ; ./configure --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc/ssh --with-md5-passwords --without-openssl-header-check make ; make install ; perl -pi -e "s/^GSSAPICleanupCredentials/#GSSAPICleanupCredentials/g" /etc/ssh/sshd_config perl -pi -e "s/^UsePAM/#UsePAM/g" /etc/ssh/sshd_config ; perl -pi -e "s/^GSSAPIAuthentication/#GSSAPIAuthentication/g" /etc/ssh/sshd_config /sbin/service sshd restart ; echo ; echo ; cd $INSTALLDIR ; echo "Update to Openssh $OPENSSH done" ; exit } doKISS() { cd /usr/bin/ ; rm -fr kiss wget $MIRROR/kiss.tmp ; mv kiss.tmp kiss ; chmod 700 kiss ; chown root:root kiss ; echo ; cd $INSTALLDIR echo "KISS My Firewall install/update done" ; exit } doWEBMIN() { cd $INSTALLDIR ; rm -rf webmin-$WEBMIN.tar.gz webmin-$WEBMIN echo "Try #1"; echo ""; wget http://$HTTP1.sourceforge.net/sourceforge/webadmin/webmin-$WEBMIN.tar.gz if [ ! -e webmin-$WEBMIN.tar.gz ] then echo "Try #2\n"; echo ""; wget http://$HTTP2.sourceforge.net/sourceforge/webadmin/webmin-$WEBMIN.tar.gz if [ ! -e webmin-$WEBMIN.tar.gz ] then echo "Try #3\n"; echo ""; wget http://$HTTP3.sourceforge.net/sourceforge/webadmin/webmin-$WEBMIN.tar.gz if [ ! -e webmin-$WEBMIN.tar.gz ] then echo "Try #4\n"; echo ""; wget http://$HTTP4.sourceforge.net/sourceforge/webadmin/webmin-$WEBMIN.tar.gz if [ ! -e webmin-$WEBMIN.tar.gz ] then echo "Catastrophe! All Mirrors failed."; exit 1; fi fi fi fi tar -zxf webmin-$WEBMIN.tar.gz ; cd webmin-$WEBMIN ; ./setup.sh /usr/local/webmin ; cd $INSTALLDIR ; echo ; echo ; echo "Control panel Webmin install/update done" ; exit } doPHPMYADMIN() { cd /var/www/html ; rm -fr phpMyAdmin ; rm -fr phpMyAdmin-* ; rm -fr phpMyAdmin-$PHPMYADMIN.tar.gz echo "Try #1"; echo ""; wget http://$HTTP5.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-$PHPMYADMIN.tar.gz if [ ! -e phpMyAdmin-$PHPMYADMIN.tar.gz ] then echo "Try #2\n"; echo ""; wget http://$HTTP4.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-$PHPMYADMIN.tar.gz if [ ! -e phpMyAdmin-$PHPMYADMIN.tar.gz ] then echo "Try #3\n"; echo ""; wget http://$HTTP3.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-$PHPMYADMIN.tar.gz if [ ! -e phpMyAdmin-$PHPMYADMIN.tar.gz ] then echo "Try #4\n"; echo ""; wget http://$HTTP2.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-$PHPMYADMIN.tar.gz if [ ! -e phpMyAdmin-$PHPMYADMIN.tar.gz ] then echo "Catastrophe! All Mirrors failed."; exit 1; fi fi fi fi tar -zxf phpMyAdmin-$PHPMYADMIN.tar.gz ; rm -fr phpMyAdmin phpMyAdmin-$PHPMYADMIN.tar.gz ; cp -f /var/www/html/phpMyAdmin-$PHPMYADMIN/config.sample.inc.php /var/www/html/phpMyAdmin-$PHPMYADMIN/config.inc.php perl -pi -e "s#\['auth_type'\] = 'cookie'#\['auth_type'\] = 'http'#" /var/www/html/phpMyAdmin-$PHPMYADMIN/config.inc.php perl -pi -e "s#\['extension'\] = 'mysql'#\['extension'\] = 'mysqli'#" /var/www/html/phpMyAdmin-$PHPMYADMIN/config.inc.php chown -f -R webapps:webapps /var/www/html/phpMyAdmin-$PHPMYADMIN chmod -f 755 /var/www/html/phpMyAdmin-$PHPMYADMIN chmod 000 /var/www/html/phpMyAdmin-$PHPMYADMIN/scripts rm -f /var/www/html/phpMyAdmin ln -s /var/www/html/phpMyAdmin-$PHPMYADMIN /var/www/html/phpMyAdmin echo ; echo ; cd $INSTALLDIR ; echo "phpMyAdmin update done, if you use suPHP run ./update.script SUPHPCHOWN" ; exit } doPROFTP() { cd $INSTALLDIR ; rm -fr proftpd-*.tar.gz wget ftp://ftp.proftpd.org/distrib/source/proftpd-$PROFTP.tar.gz if [ "`md5sum $INSTALLDIR/proftpd-$PROFTP.tar.gz | cut -d ' ' -f 1`" = "`grep PROFTP-core -m1 $INSTALLDIR/versions | cut -d ':' -f 3`" ]; then echo "MD5 valid." else echo "MD5 invalid. Aborting." exit fi tar zxvf proftpd-$PROFTP.tar.gz cd proftpd-$PROFTP #install_user=ftp install_group=ftp ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/run --mandir=/usr/share/man --without-pam --disable-auth-pam --with-modules=mod_ratio:mod_readme:mod_wrap LDFLAGS=-static install_user=ftp install_group=ftp ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/run --mandir=/usr/share/man --without-pam --disable-auth-pam --with-modules=mod_ratio:mod_readme:mod_wrap:mod_wrap2:mod_wrap2_file:mod_copy:mod_deflate:mod_qos LDFLAGS=-static #install_user=ftp install_group=ftp ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/run --mandir=/usr/share/man --without-pam --disable-auth-pam --with-modules=mod_ratio:mod_readme:mod_wrap:mod_copy:mod_deflate:mod_qos LDFLAGS=-static rm -f /etc/proftpd.conf.bak1 ; cp /etc/proftpd.conf /etc/proftpd.conf.bak1 make ; make install ; rm -f /usr/local/etc/proftpd.conf ln -s /etc/proftpd.conf /usr/local/etc/proftpd.conf perl -pi -e "s/^AuthPAM on/#AuthPAM on/g" /etc/proftpd.conf ; /etc/rc.d/init.d/proftpd restart ; /usr/sbin/proftpd -v echo ; echo ; cd $INSTALLDIR ; echo "ProFtp update done" ; exit } doPROFTPMODCLAMAV() { cd $INSTALLDIR ; rm -fr proftpd-*.tar.gz wget ftp://ftp.proftpd.org/distrib/source/proftpd-$PROFTP.tar.gz if [ "`md5sum $INSTALLDIR/proftpd-$PROFTP.tar.gz | cut -d ' ' -f 1`" = "`grep PROFTP-core -m1 $INSTALLDIR/versions | cut -d ':' -f 3`" ]; then echo "MD5 valid." else echo "MD5 invalid. Aborting." exit fi cd $INSTALLDIR ; rm -fr mod_clamav-*.tar.gz wget $MIRROR/mod_clamav-$PROFTPModClamav.tar.gz if [ "`md5sum $INSTALLDIR/mod_clamav-$PROFTPModClamav.tar.gz | cut -d ' ' -f 1`" = "`grep PROFTPModClamav-core -m1 $INSTALLDIR/versions | cut -d ':' -f 3`" ]; then echo "MD5 valid." else echo "MD5 invalid. Aborting." exit fi tar xzvf mod_clamav-$PROFTPModClamav.tar.gz ; tar zxvf proftpd-$PROFTP.tar.gz cp $INSTALLDIR/mod_clamav-$PROFTPModClamav/mod_clamav.* $INSTALLDIR/proftpd-$PROFTP/contrib ; cd proftpd-$PROFTP ; patch -p1 <$INSTALLDIR/mod_clamav-$PROFTPModClamav/proftpd.patch #install_user=ftp install_group=ftp ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/run --mandir=/usr/share/man --without-pam --disable-auth-pam --with-modules=mod_ratio:mod_readme:mod_wrap:mod_wrap2:mod_wrap2_file:mod_clamav:mod_copy:mod_deflate:mod_qos LDFLAGS=-static install_user=ftp install_group=ftp ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/run --mandir=/usr/share/man --without-pam --disable-auth-pam --with-modules=mod_ratio:mod_readme:mod_wrap:mod_clamav:mod_copy:mod_deflate:mod_qos LDFLAGS=-static rm -f /etc/proftpd.conf.bak1 ; cp /etc/proftpd.conf /etc/proftpd.conf.bak1 make ; make install ; rm -f /usr/local/etc/proftpd.conf ln -s /etc/proftpd.conf /usr/local/etc/proftpd.conf perl -pi -e "s/^AuthPAM on/#AuthPAM on/g" /etc/proftpd.conf ; /etc/rc.d/init.d/proftpd restart ; /usr/sbin/proftpd -v echo ; echo ; cd $INSTALLDIR ; echo "ProFtp with mod_clamav update done" ; exit } doEXIMTAR() { cd $INSTALLDIR ; yum -y install rpm-build db4 db4-devel compat-db ; rm -fr exim-$EXIM.tar.gz wget ftp://ftp.exim.org/pub/exim/exim4/exim-$EXIM.tar.gz if [ "`md5sum $INSTALLDIR/exim-$EXIM.tar.gz | cut -d ' ' -f 1`" = "`grep EXIMTAR-core -m1 $INSTALLDIR/versions | cut -d ':' -f 3`" ]; then echo "MD5 valid." else echo "MD5 invalid. Aborting." exit fi tar xvzf exim-$EXIM.tar.gz cd exim-$EXIM/Local ; wget $MIRROR/exim-Makefile ; mv exim-Makefile Makefile cd $INSTALLDIR/exim-$EXIM ; make ; make install if [ -f "/usr/sbin/exim-$EXIM-2" ] && [ ! "/usr/sbin/exim-$EXIM-2" == "" ]; then rm -fr /usr/sbin/exim ; cp -f /usr/sbin/exim-$EXIM-2 /usr/sbin/exim else rm -fr /usr/sbin/exim ; cp -f /usr/sbin/exim-$EXIM-1 /usr/sbin/exim fi chmod 4755 /usr/sbin/exim ; /sbin/service exim restart echo ; echo ; cd $INSTALLDIR ; echo "Exim update done" ; exit } doSPAMASSASSIN() { yum -y install perl-Archive-Tar perl-IO-Zlib perl-Package-Constants ; cd /root ; perl -MCPAN -e 'install Archive::Tar' ; perl -MCPAN -e 'install IO::Zlib' ; perl -MCPAN -e 'install Digest::SHA' ; perl -MCPAN -e 'install Mail::SPF' ; perl -MCPAN -e 'install Mail::DKIM' ; cd /usr/local/directadmin/scripts/packages ; rm -fr Mail-SpamAssassin-*.tar.gz wget http://mirror.olnevhost.net/pub/apache/spamassassin/source/Mail-SpamAssassin-$SPAMASSASSIN.tar.gz ; cd /usr/local/directadmin/scripts killall spamd exim -9 VERSION=$SPAMASSASSIN PERL=/usr/bin/perl NAME=Mail-SpamAssassin-${VERSION} FILE=${NAME}.tar.gz WEBPATH=http://files.directadmin.com/services/9.0 WEBPATH_BACKUP=http://files4.directadmin.com/services/9.0 CWD=/usr/local/directadmin/scripts/packages MAKEMAKER_VER=6.31 MAKEMAKER_NAME=ExtUtils-MakeMaker-${MAKEMAKER_VER} DIGEST_VER=1.15 DIGEST_SHA1_VER=2.11 PARSER_VER=3.56 NETDNS_VER=0.60 NETDNS_NAME=Net-DNS-${NETDNS_VER} NETIP_VER=1.25 NETIP_NAME=Net-IP-${NETIP_VER} NETADDRIP_VER=4.027 NETADDRIP_NAME=NetAddr-IP-${NETADDRIP_VER} ERROR_VER=0.17015 ERROR_NAME=Error-${ERROR_VER} URI_VER=1.35 URI_NAME=URI-${URI_VER} NET_CIDR_LITE_VER=0.20 NET_CIDR_LITE_NAME=Net-CIDR-Lite-${NET_CIDR_LITE_VER} DIGEST_NAME=Digest-${DIGEST_VER} DIGEST_SHA1_NAME=Digest-SHA1-${DIGEST_SHA1_VER} PARSER_NAME=HTML-Parser-${PARSER_VER} STORABLE_VER=2.16 STORABLE_NAME=Storable-${STORABLE_VER} DB_FILE_VER=1.815 DB_FILE_NAME=DB_File-${DB_FILE_VER} #MAIL_SPF_QUERY_VER=1.998 #MAIL_SPF_QUERY_NAME=Mail-SPF-Query-${MAIL_SPF_QUERY_VER} MAIL_SPF_VER=2.004 MAIL_SPF_NAME=Mail-SPF-${MAIL_SPF_VER} SYS_HOSTNAME_VER=1.4 SYS_HOSTNAME_NAME=Sys-Hostname-Long-${SYS_HOSTNAME_VER} NET_SSLeay_VER=1.30 NET_SSLeay_NAME=Net_SSLeay.pm-${NET_SSLeay_VER} IO_SOCKET_VER=1.06 IO_SOCKET_NAME=IO-Socket-SSL-${IO_SOCKET_VER} OS=`uname` getFile() { if [ ! -e $1 ] then echo -e "Downloading\t\t$1..."; if [ $OS = "FreeBSD" ]; then fetch -o ${CWD}/${1} ${WEBPATH}/${1}; else wget -O ${CWD}/${1} ${WEBPATH}/${1}; fi if [ ! -e $1 ] then echo "Fileserver is down, using the backup file server.."; if [ $OS = "FreeBSD" ]; then fetch ${WEBPATH_BACKUP}/${1}; else wget ${WEBPATH_BACKUP}/${1} -O ${CWD}/${1}; fi fi else echo -e "File already exists:\t${1}"; fi } ensureVersion() { PERL_VER=`$PERL -v | head -n2 | tail -n1 | cut -d\ -f4 | cut -dv -f2` NUM1=`echo $PERL_VER | cut -d. -f1` NUM2=`echo $PERL_VER | cut -d. -f2` NUM3=`echo $PERL_VER | cut -d. -f3` if [ $NUM1 -gt 5 ]; then return 1; fi if [ $NUM2 -gt 6 ]; then return 1; fi if [ $NUM3 -gt 0 ]; then return 1; fi echo "Your perl version is $PERL_VER. You require at least perl 5.6.1 for $NAME"; exit 1; } downloadMake() { cd $CWD getFile ${1}.tar.gz tar xvzf ${1}.tar.gz cd ${1} $PERL Makefile.PL make make install cd $CWD } cd $CWD; ensureVersion; export LANG=C downloadMake $ERROR_NAME #downloadMake $MAKEMAKER_NAME downloadMake $DIGEST_NAME downloadMake $DIGEST_SHA1_NAME downloadMake $PARSER_NAME downloadMake $STORABLE_NAME downloadMake $NETDNS_NAME downloadMake $NETIP_NAME downloadMake $NET_CIDR_LITE_NAME downloadMake $NETADDRIP_NAME downloadMake $DB_FILE_NAME #downloadMake $MAIL_SPF_QUERY_NAME downloadMake $MAIL_SPF_NAME downloadMake $SYS_HOSTNAME_NAME downloadMake $NET_SSLeay_NAME downloadMake $IO_SOCKET_NAME downloadMake $URI_NAME getFile $FILE; tar xzf ${FILE} chown -R root $NAME cd ${CWD}/${NAME} #export LANG=C #moved higher $PERL Makefile.PL PREFIX=/usr CONTACT_ADDRESS="the administrator of that system" RUN_NET_TESTS="no" make make install ## we need to change how it's started. if [ -e /etc/init.d/exim ]; then $PERL -pi -e 's#/usr/bin/spamd -d -a -c -m 5#/usr/bin/spamd -d -c -m 5#' /etc/init.d/exim fi if [ -e /usr/local/etc/rc.d/exim ]; then $PERL -pi -e 's#/usr/bin/spamd -d -a -c -m 5#/usr/bin/spamd -d -c -m 5#' /usr/local/etc/rc.d/exim fi echo ""; sa-update ; /usr/bin/spamd -d -c -m 5 ; /sbin/service exim restart ; echo ; echo ; cd $INSTALLDIR ; echo "SpamAssassin update done" ; exit } doAVG() { cd $INSTALLDIR ; rm -rf avg$AVG1-$AVG2.i386.rpm wget http://www.grisoft.cz/filedir/inst/avg$AVG1-$AVG2.i386.rpm yum -y install pygtk2* ; rpm -i avg$AVG1-$AVG2.i386.rpm ; avgupdate --path="/opt/avg/avg8/update/download" ; /etc/init.d/avgd restart ; echo ; echo "Install/Update AVG Anti-Virus $AVG1 Free Edition $AVG2 for Linux done" } doFFMPEG() { cd $INSTALLDIR ; rm -fr ffmpeg-php-$FFMPEG.tbz2 ffmpeg-php$FFMPEG ; wget $MIRROR/ffmpeg/ffmpeg-php-$FFMPEG.tbz2 if [ "`md5sum $INSTALLDIR/ffmpeg-php-$FFMPEG.tbz2 | cut -d ' ' -f 1`" = "`grep FFMPEG-core -m1 $INSTALLDIR/versions | cut -d ':' -f 3`" ]; then echo "MD5 valid." else echo "MD5 invalid. Aborting." exit fi if [ -f "/etc/yum.repos.d/dag.repo" ] && [ ! "/etc/yum.repos.d/dag.repo" == "" ]; then yum -y install ffmpeg ffmpeg-devel flvtool2 mencoder else echo "[dag]" > /etc/yum.repos.d/dag.repo echo "name=Dag RPM Repository for Red Hat Enterprise Linux" >> /etc/yum.repos.d/dag.repo echo "baseurl=http://apt.sw.be/redhat/el\$releasever/en/\$basearch/dag" >> /etc/yum.repos.d/dag.repo echo "gpgcheck=0" >> /etc/yum.repos.d/dag.repo echo "enabled=1" >> /etc/yum.repos.d/dag.repo yum -y install ffmpeg ffmpeg-devel flvtool2 mencoder fi tar -xjf $INSTALLDIR/ffmpeg-php-$FFMPEG.tbz2 ; cd ffmpeg-php-$FFMPEG if [ -f "$PHPIZE1" ] && [ ! "$PHPIZE1" == "" ]; then $PHPIZE1 ; rm -fr ffmpeg_frame.c ; wget $MIRROR/ffmpeg/ffmpeg_frame.c ; cp -aP ffmpeg_frame.loT ffmpeg_frame.lo ; ./configure --with-php-config=/usr/local/bin/php-config ; make ; make install else $PHPIZE2 ; rm -fr ffmpeg_frame.c ; wget $MIRROR/ffmpeg/ffmpeg_frame.c ; cp -aP ffmpeg_frame.loT ffmpeg_frame.lo ; ./configure --with-php-config=/usr/local/bin/php-config ; make ; make install fi cd $INSTALLDIR ; echo ""; echo ""; echo "ffmpeg-php install/update Done" ; exit } doPHPCLAMAV() { cd $INSTALLDIR ; rm -fr php-clamav_$PHPCLAMAV.tar.gz php-clamav_$PHPCLAMAV ; wget $MIRROR/php-clamav/php-clamav_$PHPCLAMAV.tar.gz if [ "`md5sum $INSTALLDIR/php-clamav_$PHPCLAMAV.tar.gz | cut -d ' ' -f 1`" = "`grep PHPCLAMAV-core -m1 $INSTALLDIR/versions | cut -d ':' -f 3`" ]; then echo "MD5 valid." else echo "MD5 invalid. Aborting." exit fi tar -xvzf php-clamav_$PHPCLAMAV.tar.gz ; cd php-clamav-$PHPCLAMAV if [ -f "$PHPIZE1" ] && [ ! "$PHPIZE1" == "" ]; then $PHPIZE1 ; ./configure --with-clamav --with-php-config=/usr/local/bin/php-config ; make ; make install else $PHPIZE2 ; ./configure --with-clamav --with-php-config=/usr/local/bin/php-config ; make ; make install fi cd $INSTALLDIR ; echo ""; echo ""; echo "php-clamav_$PHPCLAMAV install/update Done" ; exit } doMODANTILORIS() { cd $INSTALLDIR ; rm -fr mod_antiloris-$MODANTILORIS.tar.bz2 mod_antiloris-$MODANTILORIS ; wget $MIRROR/mod_antiloris-$MODANTILORIS.tar.bz2 if [ "`md5sum $INSTALLDIR/mod_antiloris-$MODANTILORIS.tar.bz2 | cut -d ' ' -f 1`" = "`grep MODANTILORIS-core -m1 $INSTALLDIR/versions | cut -d ':' -f 3`" ]; then echo "MD5 valid." else echo "MD5 invalid. Aborting." exit fi tar -jxvvf mod_antiloris-$MODANTILORIS.tar.bz2 ; cd mod_antiloris-$MODANTILORIS ; apxs -a -i -l cap -c mod_antiloris.c ; /sbin/service httpd restart cd $INSTALLDIR ; echo ""; echo ""; echo "mod_antiloris install/update Done" ; exit } doCLAMAV() { cd $INSTALLDIR ; rm -fr clamav-*.tar.gz ; rm -fr clamav-* ; killall clamd -9 ; killall freshclam -9 echo "Try #1"; echo ""; wget http://$HTTP1.sourceforge.net/sourceforge/clamav/clamav-$CLAMAV.tar.gz if [ ! -e clamav-$CLAMAV.tar.gz ] then echo "Try #2\n"; echo ""; wget http://$HTTP2.sourceforge.net/sourceforge/clamav/clamav-$CLAMAV.tar.gz if [ ! -e clamav-$CLAMAV.tar.gz ] then echo "Try #3\n"; echo ""; wget http://$HTTP3.sourceforge.net/sourceforge/clamav/clamav-$CLAMAV.tar.gz if [ ! -e clamav-$CLAMAV.tar.gz ] then echo "Try #4\n"; echo ""; wget http://$HTTP4.sourceforge.net/sourceforge/clamav/clamav-$CLAMAV.tar.gz if [ ! -e clamav-$CLAMAV.tar.gz ] then echo "Catastrophe! All Mirrors failed."; exit 1; fi fi fi fi if [ "`md5sum $INSTALLDIR/clamav-$CLAMAV.tar.gz | cut -d ' ' -f 1`" = "`grep CLAMAV-core -m1 $INSTALLDIR/versions | cut -d ':' -f 3`" ]; then echo "MD5 valid." else echo "MD5 invalid. Aborting." exit fi tar -zxf clamav-$CLAMAV.tar.gz ; cd clamav-$CLAMAV yum -y install gmp-devel bzip2* ; yum -y remove clamav #rm -fr /usr/local/bin/clamscan /usr/local/bin/freshclam groupadd clamav useradd -g clamav -s /bin/false -c "Clam AntiVirus" clamav mkdir /var/lib/clamav ; chmod 777 /var/lib/clamav ; ./configure --sysconfdir=/etc --enable-bzip2 && make && make install ; rm -fr /etc/freshclam.conf ; rm -fr /etc/clamd.conf #wget $MIRROR/clamd/web4host.net-clamav.i386.rpm #rpm -Uvh --force --nodeps ./web4host.net-clamav.i386.rpm cd /etc/init.d/ ; wget $MIRROR/clamd/clamd1 ; wget $MIRROR/clamd/freshclam1 ; rm -fr clamd freshclam ; mv clamd1 clamd ; mv freshclam1 freshclam ; chmod 755 clamd freshclam ; rm -fr /sbin/clamd /sbin/freshclam ; ln -s /etc/init.d/clamd /usr/local/bin/clamd ; ln -s /etc/init.d/freshclam /usr/local/bin/freshclam ; cd /etc/ ; rm -fr freshclam.conf clamd.conf ; wget $MIRROR/clamd/clamd2 ; wget $MIRROR/clamd/freshclam2 ; mv clamd2 clamd.conf ; mv freshclam2 freshclam.conf ; ldconfig ; /usr/local/sbin/clamd ; /usr/local/bin/freshclam ; killall clamd -9 ; killall freshclam -9 ; /usr/local/bin/freshclam -d -c 6 ; /usr/local/sbin/clamd COUNT=`grep -c -e '^/usr/local/sbin/clamd' /etc/rc.local` if [ $COUNT -eq 0 ]; then echo "/usr/local/sbin/clamd" >> /etc/rc.local fi COUNT=`grep -c -e '^/usr/local/bin/freshclam' /etc/rc.local` if [ $COUNT -eq 0 ]; then echo "/usr/local/bin/freshclam -d -c 6" >> /etc/rc.local fi ldconfig ; echo "ClamAV auto start when server reboot" ; killall clamd -9 ; killall freshclam -9 ; /usr/local/bin/freshclam -d -c 6 ; /usr/local/sbin/clamd ; cd $INSTALLDIR ; echo ; echo ; echo "ClamAV install/update done" ; exit } doNOBODYCHECK() { cd $INSTALLDIR ; rm -fr nobody_check.tar.gz ; rm -fr nobody_check echo "Download nobody_check.tar.gz"; echo ""; wget wget $MIRROR/nobody_check.tar.gz if [ ! -e nobody_check.tar.gz ] then echo "Catastrophe! Mirrors failed."; exit 1; fi cd /usr/local ; rm -fr nobody_check.tar.gz ; rm -fr nobody_check mv $INSTALLDIR/nobody_check.tar.gz /usr/local/nobody_check.tar.gz ; tar -zxvf nobody_check.tar.gz wget -O /etc/cron.hourly/nobody_check $MIRROR/nobody_check.tmp ; rm -fr /usr/local/nobody_check.tar.gz ; chmod 755 /etc/cron.hourly/nobody_check cd $INSTALLDIR ; echo ; echo ; echo "NoBody Check install/update done" ; exit } doMRTG() { #cd $INSTALLDIR ; rm -rf /usr/local/mrtg-2/ ; rm -rf /var/www/html/mrtg/ ; rm -rf mrtg-$MRTG.tar.gz ; yum -y install gd-devel ; USER=`whoami` cd $INSTALLDIR ; rm -rf /usr/local/mrtg-2/ ; rm -rf mrtg-$MRTG.tar.gz ; yum -y install gd-devel ; USER=`whoami` echo "Checking for previous MRTG installation..." if [ -d /var/www/html/mrtg ]; then FILECOUNT=`ls /var/www/html/mrtg | wc -l` if [ "$FILECOUNT" -ge "1" ]; then echo "There appears to be files in /var/www/html/mrtg already! Exiting..." exit 0; else echo "The directory /var/www/html/mrtg exists, but there are no files. This is okay..." fi else echo "The directory /var/www/html/mrtg does not exist. I will create it..." mkdir /var/www/html/mrtg fi WD=`pwd` cd /usr/local/src rm -rf mrtg* echo "Preparations complete..." cd $INSTALLDIR ; rm -fr mrtg*.tar.gz mrtg* echo "Downloading the most recent MRTG and installing it..." #wget http://people.ee.ethz.ch/~oetiker/webtools/mrtg/pub/mrtg-$MRTG.tar.gz wget http://oss.oetiker.ch/mrtg/pub/mrtg-$MRTG.tar.gz tar zfx mrtg-$MRTG.tar.gz cd mrtg* ./configure --with-gd=/usr/lib ; make ; make install echo "MRTG has been installed..." cd $INSTALLDIR ; rm -fr core.tgz core wget -O core.tgz $MIRROR/core.tgz ; tar zfx core.tgz ; mv core /var/www/html/mrtg/core echo "Creating necessary directories and preparing for installation..." #mkdir /var/www/html/mrtg/core chmod 700 /var/www/html/mrtg/core #wget -O mrtg.cfg $MIRROR/mrtg..tmp #wget -O system $MIRROR/system.tmp #chmod +x mrtg.cfg ; chmod +x system #mv -f system /var/www/html/mrtg/core #mv -f mrtg.cfg /var/www/html/mrtg/core echo "Updating MRTG config and template..." total=0 count=0 for i in `df -kl | grep -v "Filesystem" | awk '{print $2}'`; do total="$total+$i"; count=`expr $count + 1`; done total=$(echo $total | bc) MEMORY="`free -b | grep Mem | awk '{print $2}'`" perl -pi -e "s#665536000#${MEMORY}#" /var/www/html/mrtg/core/mrtg.cfg perl -pi -e "s#74747118#${total}#" /var/www/html/mrtg/core/mrtg.cfg /usr/local/mrtg-2/bin/indexmaker /var/www/html/mrtg/core/mrtg.cfg --output=/var/www/html/mrtg/index.html echo "Adding MRTG to /etc/crontab..." #echo "*/5 * * * * root /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/mrtg.cfg" >> /etc/crontab #echo "" >> /etc/crontab MRTGCRON="`cat /etc/crontab | grep '/var/www/html/mrtg/core/mrtg.cfg' | wc -l`" #if [ "${MRTGCRON}" -eq 0]; then if [ "${MRTGCRON}" = "0" ]; then echo "*/5 * * * * root /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/mrtg.cfg" >> /etc/crontab echo "" >> /etc/crontab fi perl -pi -e 's/151598074/1598074/' /var/www/html/mrtg/core/mrtg.cfg env LANG=C /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/mrtg.cfg env LANG=C /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/mrtg.cfg env LANG=C /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/mrtg.cfg env LANG=C /usr/local/mrtg-2/bin/mrtg /var/www/html/mrtg/core/mrtg.cfg echo "Cleaning up installation..." rm -rf mrtg* cd $WD echo ; echo ; cd $INSTALLDIR ; echo "MRTG install done" ; exit } doIMAP() { cd $INSTALLDIR ; rm -fr imap-* da_imap-*.tar.gz ; wget http://files.directadmin.com/services/imapback-$IMAP.tar.gz tar -zxvf imapback-$IMAP.tar.gz ; cd imap* ; wget -O buildit $MIRROR/buildit.tmp ; chmod 755 buildit ./buildit ; cd imapd ; cp --reply=yes imapd /usr/sbin/imapd ; chmod 755 /usr/sbin/imapd cd .. ; rm -fr /usr/local/imap-* ; mkdir /usr/local/imap-$IMAP ; mkdir /usr/local/imap-$IMAP/lib ; mkdir /usr/local/imap-$IMAP/include cd c-client/ ; cp *.h /usr/local/imap-$IMAP/include/ ; cp *.c /usr/local/imap-$IMAP/lib/ ; cp c-client.a /usr/local/imap-$IMAP/lib/libc-client.a echo "" echo "************************************" ; echo "Change the configure file of php." ; echo "************************************" ; cd $INSTALLDIR ; exit } doSQUIRRELMAIL() { cd /var/www/html/ ; rm -fr squirrelmail-webmail-$SQUIRRELMAIL.tar.gz echo "Try #1"; echo ""; wget http://${HTTP1}.sourceforge.net/sourceforge/squirrelmail/squirrelmail-webmail-$SQUIRRELMAIL.tar.gz if [ ! -e squirrelmail-webmail-$SQUIRRELMAIL.tar.gz ] then echo "Try #2\n"; echo ""; wget http://${HTTP2}.sourceforge.net/sourceforge/squirrelmail/squirrelmail-webmail-$SQUIRRELMAIL.tar.gz if [ ! -e squirrelmail-webmail-$SQUIRRELMAIL.tar.gz ] then echo "Try #3\n"; echo ""; wget http://${HTTP3}.sourceforge.net/sourceforge/squirrelmail/squirrelmail-webmail-$SQUIRRELMAIL.tar.gz if [ ! -e squirrelmail-webmail-$SQUIRRELMAIL.tar.gz ] then echo "Try #4\n"; echo ""; wget http://${HTTP4}.sourceforge.net/sourceforge/squirrelmail/squirrelmail-webmail-$SQUIRRELMAIL.tar.gz if [ ! -e squirrelmail-webmail-$SQUIRRELMAIL.tar.gz ] then echo "Catastrophe! All Mirrors failed."; exit 1; fi fi fi fi tar -zxf squirrelmail-webmail-$SQUIRRELMAIL.tar.gz echo "Copying Data..." cp /var/www/html/squirrelmail/data/* /var/www/html/squirrelmail-webmail-$SQUIRRELMAIL/data cp /var/www/html/squirrelmail/config/config.php /var/www/html/squirrelmail-webmail-$SQUIRRELMAIL/config cp -Rp /var/www/html/squirrelmail/plugins/* /var/www/html/squirrelmail-webmail-$SQUIRRELMAIL/plugins cp -R /var/www/html/squirrelmail/themes/* /var/www/html/squirrelmail-webmail-$SQUIRRELMAIL/themes/ cp -Rp /var/www/html/squirrelmail/locale/* /var/www/html/squirrelmail-webmail-$SQUIRRELMAIL/locale/ rm -rf /var/www/html/squirrelmail ln -sf /var/www/html/squirrelmail-webmail-$SQUIRRELMAIL/ /var/www/html/squirrelmail chown -R root:root /var/www/html/squirrelmail-webmail-$SQUIRRELMAIL chown -R apache:apache /var/www/html/squirrelmail-webmail-$SQUIRRELMAIL/data chmod 777 -R /var/www/html/squirrelmail/data rm -fr /var/www/html/squirrelmail-webmail-$SQUIRRELMAIL.tar.gz cd $INSTALLDIR ; echo "" ; echo "" ; echo "" ; echo "" ; echo "" ; echo "" ; echo "" ; echo "" ; echo "" ; echo "SquirrelMail update done, if you use suPHP run ./update.script SUPHPCHOWN" ; exit } doSQUIRRELMAILLANG() { cd /var/www/html/squirrelmail ; rm -fr all_locales-$SQUIRRELMAILLANG.tar.gz echo "Try #1"; echo ""; wget http://${HTTP1}.sourceforge.net/sourceforge/squirrelmail/all_locales-$SQUIRRELMAILLANG.tar.gz if [ ! -e all_locales-$SQUIRRELMAILLANG.tar.gz ] then echo "Try #2\n"; echo ""; wget http://${HTTP2}.sourceforge.net/sourceforge/squirrelmail/all_locales-$SQUIRRELMAILLANG.tar.gz if [ ! -e all_locales-$SQUIRRELMAILLANG.tar.gz ] then echo "Try #3\n"; echo ""; wget http://${HTTP3}.sourceforge.net/sourceforge/squirrelmail/all_locales-$SQUIRRELMAILLANG.tar.gz if [ ! -e all_locales-$SQUIRRELMAILLANG.tar.gz ] then echo "Try #4\n"; echo ""; wget http://${HTTP4}.sourceforge.net/sourceforge/squirrelmail/all_locales-$SQUIRRELMAILLANG.tar.gz if [ ! -e all_locales-$SQUIRRELMAILLANG.tar.gz ] then echo "Catastrophe! All Mirrors failed."; exit 1; fi fi fi fi tar -zxf all_locales-$SQUIRRELMAILLANG.tar.gz echo "Copying language pack." cd $INSTALLDIR ; echo "" ; echo "" ; echo "" ; echo "" ; echo "" ; echo "" ; echo "" ; echo "" ; echo "" ; echo "Copying SquirrelMail language pack done, if you use suPHP run ./update.script SUPHPCHOWN" ; exit } doMODsecurity2Apache2() { cd $INSTALLDIR ; rm -fr modsecurity2 modsecurity-apache_$MODSECURITY2.tar.gz ; mkdir modsecurity2 ; cd modsecurity2 ; echo "Only one mirror to download modsecurity-apache_$MODSECURITY2.tar.gz"; echo ""; wget http://www.modsecurity.org/download/modsecurity-apache_$MODSECURITY2.tar.gz if [ ! -e modsecurity-apache_$MODSECURITY2.tar.gz ] then echo "Catastrophe! Mirror failed."; exit 1; fi perl -pi -e 's/ServerTokens Major/ServerTokens Full/' /etc/httpd/conf/extra/httpd-default.conf ; perl -pi -e 's/ServerSignature Off/ServerSignature On/' /etc/httpd/conf/extra/httpd-default.conf ; perl -pi -e 's/ServerSignature EMail/ServerSignature On/' /etc/httpd/conf/extra/httpd-default.conf tar xzf modsecurity-apache_$MODSECURITY2.tar.gz ; cd modsecurity-apache_$MODSECURITY2 ; yum -y install expat-devel ; ./configure ; make ; make test ; make install ; echo "modsecurity $MODSECURITY2 install/update done" ; cd $INSTALLDIR } #doMODsecurity2Apache2Rules() #{ # cd $INSTALLDIR ; rm -fr modsecurity-rules-selected-by-web4host.net.conf.00 ; mkdir /etc/modsecurity2 ; echo "Only one mirror to download Modsecurity2 Rules" # echo ""; # wget $MIRROR/modsecurity/modsecurity-rules-selected-by-web4host.net.conf.00 # if [ ! -e modsecurity-rules-selected-by-web4host.net.conf.00 ] # then # echo "Catastrophe! Mirror failed."; # exit 1; # fi # perl -pi -e 's/ServerTokens Major/ServerTokens Full/' /etc/httpd/conf/extra/httpd-default.conf ; perl -pi -e 's/ServerSignature Off/ServerSignature On/' /etc/httpd/conf/extra/httpd-default.conf ; perl -pi -e 's/ServerSignature EMail/ServerSignature On/' /etc/httpd/conf/extra/httpd-default.conf ; mv -f $INSTALLDIR/modsecurity-rules-selected-by-web4host.net.conf.00 /etc/modsecurity2/modsecurity-rules-selected-by-web4host.net.conf ; echo "modsecurity $MODSECURITY25 rules install/update done" ; cd $INSTALLDIR #} doMODsecurity2Apache2Rules() { cd $INSTALLDIR ; cd /etc/ ; echo "Only one mirror to download Modsecurity2 Rules" ; rm -fr /etc/modsecurity2.tar.gz echo ""; wget $MIRROR/modsecurity/modsecurity2.tar.gz if [ ! -e modsecurity2.tar.gz ] then echo "Catastrophe! Mirror failed."; cd $INSTALLDIR ; exit 1; fi rm -fr /etc/modsecurity2 ; tar -zxvf modsecurity2.tar.gz ; perl -pi -e 's/ServerTokens Major/ServerTokens Full/' /etc/httpd/conf/extra/httpd-default.conf ; perl -pi -e 's/ServerSignature Off/ServerSignature On/' /etc/httpd/conf/extra/httpd-default.conf ; perl -pi -e 's/ServerSignature EMail/ServerSignature On/' /etc/httpd/conf/extra/httpd-default.conf ; echo "modsecurity $MODSECURITY25 rules install/update done" ; rm -fr /etc/modsecurity2.tgz ; cd $INSTALLDIR } doMODevasiveApache2() { cd $INSTALLDIR ; rm -fr mod_evasive20.c ; wget $MIRROR/modevasive/mod_evasive20.c ; /usr/sbin/apxs -i -a -c ./mod_evasive20.c ; cd $INSTALLDIR ; echo "modevasive install/update done" ; exit } doEACCELERATOR() { echo echo echo "##################################################################" echo "#" echo -e "# \e[1;37mIf you use PHP CGI run\e[0m" echo "# ./update.script EACCELERATOR2" echo -e "# \e[1;37mIf you use PHP CLI run\e[0m" echo "# ./update.script EACCELERATOR1" echo "#" echo "##################################################################" echo echo ; exit } doEACCELERATOR1() { cd $INSTALLDIR ; yum -y install autoconf ; rm -fr eaccelerator-*.tar.bz2 eaccelerator-* wget $MIRRORFILES/eaccelerator/eaccelerator-$EACCELERATOR.tar.bz2 if [ "`md5sum $INSTALLDIR/eaccelerator-$EACCELERATOR.tar.bz2 | cut -d ' ' -f 1`" = "`grep EACCELERATOR-core -m1 $INSTALLDIR/versions | cut -d ':' -f 3`" ]; then echo "MD5 valid." else echo "MD5 invalid. Aborting." exit fi tar -xvjf eaccelerator-$EACCELERATOR.tar.bz2 cd eaccelerator-$EACCELERATOR ; export PHP_PREFIX="/usr/local" ; $PHP_PREFIX/bin/phpize rm -fr /usr/local/lib/php/extensions/no-debug-non-zts-*/eaccelerator.so ./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/bin/php-config --with-eaccelerator-content-caching ; make ; make install cd /tmp ; rm -fr /tmp/eaccelerator ; mkdir eaccelerator ; chmod 0777 eaccelerator ; cd $INSTALLDIR echo "eAccelerator install/update done" ; exit } doEACCELERATOR2() { cd $INSTALLDIR ; yum -y install autoconf ; rm -fr eaccelerator-*.tar.bz2 eaccelerator-* wget $MIRRORFILES/eaccelerator/eaccelerator-$EACCELERATOR.tar.bz2 if [ "`md5sum $INSTALLDIR/eaccelerator-$EACCELERATOR.tar.bz2 | cut -d ' ' -f 1`" = "`grep EACCELERATOR-core -m1 $INSTALLDIR/versions | cut -d ':' -f 3`" ]; then echo "MD5 valid." else echo "MD5 invalid. Aborting." exit fi tar -xvjf eaccelerator-$EACCELERATOR.tar.bz2 cd eaccelerator-$EACCELERATOR ; export PHP_PREFIX="/usr/local" ; $PHP_PREFIX/php5/bin/phpize rm -fr /usr/local/php5/lib/php/extensions/no-debug-non-zts-*/eaccelerator.so ./configure --enable-eaccelerator=shared --with-php-config=$PHP_PREFIX/php5/bin/php-config --with-eaccelerator-content-caching ; make ; make install cd /tmp ; rm -fr /tmp/eaccelerator ; mkdir eaccelerator ; chmod 0777 eaccelerator ; cd $INSTALLDIR echo "eAccelerator install/update done" ; exit } doGRAPHICSMAGICK() { echo "##################################################################" echo "#" echo -e "# \e[1;37mInstall ImageMagick first\e[0m" echo "# ./update.script IMAGEMAGICK" echo -e "# \e[1;37mthen install GraphicsMagick run\e[0m" echo "# ./update.script GRAPHICSMAGICK" echo "#" echo -e "# \e[1;37mIf you install ImageMagick before just continue\e[0m" echo "#" echo "##################################################################" echo -e "#### \e[1;37mhit CTRL+C (^C) to abort or press enter to continue.....\e[0m ####" echo "##################################################################" read E ; cd $INSTALLDIR ; rm -fr GraphicsMagick-$GRAPHICSMAGICK.tar.gz GraphicsMagick-* wget $MIRROR/graphicsmagick/GraphicsMagick-$GRAPHICSMAGICK.tar.gz if [ "`md5sum $INSTALLDIR/GraphicsMagick-$GRAPHICSMAGICK.tar.gz | cut -d ' ' -f 1`" = "`grep GRAPHICSMAGICK-core -m1 $INSTALLDIR/versions | cut -d ':' -f 3`" ]; then echo "MD5 valid." else echo "MD5 invalid. Aborting." exit fi gzip -d GraphicsMagick-$GRAPHICSMAGICK.tar.gz ; tar -xvf GraphicsMagick-$GRAPHICSMAGICK.tar cd GraphicsMagick-$GRAPHICSMAGICK ; ./configure --prefix=/usr/local --enable-magick-compat --enable-shared --enable-magick-compat ; make ; make install cd $INSTALLDIR ; echo "GraphicsMagick install/update done" ; exit } doIMAGEMAGICK() { #echo #echo #echo "##################################################################" #echo "#" #echo -e "# \e[1;37mIf you use PHP CGI run\e[0m" #echo "# ./update.script IMAGEMAGICK2" #echo -e "# \e[1;37mIf you use PHP CLI run\e[0m" #echo "# ./update.script IMAGEMAGICK1" #echo "#" #echo "##################################################################" #echo ; exit cd $INSTALLDIR ; rm -fr ImageMagick-$IMAGEMAGICK.tar.gz ImageMagick* wget $MIRRORFILES/imagemagick/ImageMagick-$IMAGEMAGICK.tar.gz if [ "`md5sum $INSTALLDIR/ImageMagick-$IMAGEMAGICK.tar.gz | cut -d ' ' -f 1`" = "`grep IMAGEMAGICK-core -m1 $INSTALLDIR/versions | cut -d ':' -f 3`" ]; then echo "MD5 valid." else echo "MD5 invalid. Aborting." exit fi tar zxf ImageMagick-$IMAGEMAGICK.tar.gz cd ImageMagick-$IMAGEMAGICK ; ./configure --prefix=/usr/local ; make ; make install ; cd PerlMagick ; perl Makefile.PL ; make ; make install cd $INSTALLDIR ; echo "ImageMagickinstall/update done" ; exit } doIMAGEMAGICK1() { cd $INSTALLDIR ; rm -fr ImageMagick-$IMAGEMAGICK.tar.gz ImageMagick* wget $MIRRORFILES/imagemagick/ImageMagick-$IMAGEMAGICK.tar.gz if [ "`md5sum $INSTALLDIR/ImageMagick-$IMAGEMAGICK.tar.gz | cut -d ' ' -f 1`" = "`grep IMAGEMAGICK-core -m1 $INSTALLDIR/versions | cut -d ':' -f 3`" ]; then echo "MD5 valid." else echo "MD5 invalid. Aborting." exit fi tar zxf ImageMagick-$IMAGEMAGICK.tar.gz cd ImageMagick-$IMAGEMAGICK ; export PHP_PREFIX="/usr/local" #$PHP_PREFIX/bin/phpize #rm -fr /usr/local/lib/php/extensions/no-debug-non-zts-*/imagick.so ; /usr/local/php5/bin/pecl uninstall imagick #./configure --with-imagick=/usr/local ; make ; make install ./configure --prefix=/usr/local ; make ; make install ; cd PerlMagick ; perl Makefile.PL ; make ; make install #/usr/local/php5/bin/pecl install imagick cd $INSTALLDIR ; echo "ImageMagickinstall/update done" ; exit } doIMAGEMAGICK2() { cd $INSTALLDIR ; rm -fr ImageMagick-$IMAGEMAGICK.tar.gz ImageMagick* wget $MIRRORFILES/imagemagick/ImageMagick-$IMAGEMAGICK.tar.gz if [ "`md5sum $INSTALLDIR/ImageMagick-$IMAGEMAGICK.tar.gz | cut -d ' ' -f 1`" = "`grep IMAGEMAGICK-core -m1 $INSTALLDIR/versions | cut -d ':' -f 3`" ]; then echo "MD5 valid." else echo "MD5 invalid. Aborting." exit fi tar zxf ImageMagick-$IMAGEMAGICK.tar.gz cd ImageMagick-$IMAGEMAGICK ; export PHP_PREFIX="/usr/local" #$PHP_PREFIX/php5/bin/phpize #rm -fr /usr/local/php5/lib/php/extensions/no-debug-non-zts-*/imagick.so ; /usr/local/php5/bin/pecl uninstall imagick #./configure --with-imagick=/usr/local ; make ; make install ./configure --prefix=/usr/local ; make ; make install ; cd PerlMagick ; perl Makefile.PL ; make ; make install #/usr/local/php5/bin/pecl install imagick cd $INSTALLDIR ; echo "ImageMagick install/update done" ; exit } doFREETYPE() { cd $INSTALLDIR ; rm -fr freetype-$FREETYPE.tar.gz ; rm -fr freetype-* echo "Try #1"; echo ""; wget http://$HTTP1.sourceforge.net/sourceforge/freetype/freetype-$FREETYPE.tar.gz if [ ! -e freetype-$FREETYPE.tar.gz ] then echo "Try #2\n"; echo ""; wget http://$HTTP2.sourceforge.net/sourceforge/freetype/freetype-$FREETYPE.tar.gz if [ ! -e freetype-$FREETYPE.tar.gz ] then echo "Try #3\n"; echo ""; wget http://$HTTP3.sourceforge.net/sourceforge/freetype/freetype-$FREETYPE.tar.gz if [ ! -e freetype-$FREETYPE.tar.gz ] then echo "Try #4\n"; echo ""; wget http://$HTTP4.sourceforge.net/sourceforge/freetype/freetype-$FREETYPE.tar.gz if [ ! -e freetype-$FREETYPE.tar.gz ] then echo "Catastrophe! All Mirrors failed."; exit 1; fi fi fi fi tar zxf freetype-$FREETYPE.tar.gz ; cd freetype-$FREETYPE ; ./configure ; make ; make install cd $INSTALLDIR ; echo "Freetype install/update done" ; exit } doMAILSCANNER() { cd $INSTALLDIR ; rm -fr $INSTALLDIR/MailScanner ; mkdir $INSTALLDIR/MailScanner ; cd $INSTALLDIR/MailScanner ; killall -9 MailScanner wget http://www.mailscanner.info/files/4/tar/MailScanner-install-$MAILSCANNER.tar.gz if [ ! -e MailScanner-install-$MAILSCANNER.tar.gz ] then exit 1; fi tar xzvf MailScanner-install-$MAILSCANNER.tar.gz cd $MAILSCANNERDIR rm -fr /opt/MailScanner-$MAILSCANNER ; rm -fr /opt/MailScanner-* ; rm -fr /opt/MailScanner #./install.sh ./install.sh --nodeps mkdir /var/spool/exim.in mkdir /var/spool/exim.in/input mkdir /var/spool/exim.in/data mkdir /var/spool/exim.in/db chown mail:mail /var/spool/exim.in chown mail:mail /var/spool/exim.in/input chown mail:mail /var/spool/exim.in/data chown mail:mail /var/spool/exim.in/db chown -R mail:mail /var/spool/MailScanner if [ ! -e /etc/exim_outgoing.conf ] then cp /etc/exim.conf /etc/exim_outgoing.conf ; fi cp /opt/MailScanner-$MAILSCANNER/etc/MailScanner.conf /opt/MailScanner-$MAILSCANNER/etc/MailScanner.conf.safe #wget -O /opt/MailScanner-$MAILSCANNER/etc/MailScanner.conf $MIRROR/MailScanner.conf.tmp /opt/MailScanner/bin/update_phishing_sites ; /opt/MailScanner/bin/update_bad_phishing_sites ; /opt/MailScanner/bin/clean.quarantine ; /opt/MailScanner/bin/update_virus_scanners ; /opt/MailScanner/bin/check_mailscanner echo ; echo ; cd $INSTALLDIR ; rm -fr $INSTALLDIR/MailScanner ; echo ""; echo ""; echo "MailScanner install/update done" ; exit } doMODCLAMAV() { cd $INSTALLDIR ; rm -fr mod_clamav-$MODCLAMAV.tar.gz mod_clamav-$MODCLAMAV ; wget http://software.othello.ch/mod_clamav/mod_clamav-$MODCLAMAV.tar.gz if [ "`md5sum $INSTALLDIR/mod_clamav-$MODCLAMAV.tar.gz | cut -d ' ' -f 1`" = "`grep MODCLAMAV-core -m1 $INSTALLDIR/versions | cut -d ':' -f 3`" ]; then echo "MD5 valid." else echo "MD5 invalid. Aborting." exit fi tar -xvzf mod_clamav-$MODCLAMAV.tar.gz ; cd mod_clamav-$MODCLAMAV ./configure --with-apache=/usr/include/apache --with-apxs=/usr/sbin/apxs make ; make install ; wget -O /etc/httpd/conf/extra/mod_clamav.conf $MIRROR/mod_clamav.tmp echo ; echo ; cd $INSTALLDIR ; echo ""; echo ""; echo "mod_clamav-$MODCLAMAV install/update Done" ; exit } doSUHOSIN() { cd $INSTALLDIR ; rm -fr suhosin-$SUHOSIN.tar.gz suhosin-$SUHOSIN ; wget http://download.suhosin.org/suhosin-$SUHOSIN.tar.gz if [ "`md5sum $INSTALLDIR/suhosin-$SUHOSIN.tar.gz | cut -d ' ' -f 1`" = "`grep SUHOSIN-core -m1 $INSTALLDIR/versions | cut -d ':' -f 3`" ]; then echo "MD5 valid." else echo "MD5 invalid. Aborting." exit fi tar -xvf suhosin-$SUHOSIN.tar.gz ; cd suhosin-$SUHOSIN ; /usr/local/bin/phpize ; ./configure --with-php-config=/usr/local/bin/php-config ; make ; make install echo ; echo ; cd $INSTALLDIR ; echo ""; echo ""; echo "Suhosin $SUHOSIN install/update Done" ; exit } ################################################## cd $BASE_PATH if [ $# -eq 2 ]; then USER_INPUT=0 INPUT_VALUE=$2 fi case "$1" in UPDATEME) doUPDATEME; ;; CLEAN) doCLEAN; ;; DATE) doDATE; ;; OPENSSL) doOPENSSL; ;; OPENSSH) doOPENSSH; ;; KISS) doKISS; ;; PHPMYADMIN) doPHPMYADMIN; ;; PROFTPMODCLAMAV) doPROFTPMODCLAMAV; ;; PROFTP) doPROFTP; ;; EXIMTAR) doEXIMTAR; ;; SQUIRRELMAIL) doSQUIRRELMAIL; ;; SQUIRRELMAILLANG) doSQUIRRELMAILLANG; ;; SPAMASSASSIN) doSPAMASSASSIN; ;; CLAMAV) doCLAMAV; ;; AVG) doAVG; ;; MRTG) doMRTG; ;; IMAP) doIMAP; ;; MODsecurityApache2) doMODsecurityApache2; ;; MODevasiveApache2) doMODevasiveApache2; ;; MODsecurity2Apache2) doMODsecurity2Apache2; ;; MODsecurity2Apache2Rules) doMODsecurity2Apache2Rules; ;; EACCELERATOR) doEACCELERATOR; ;; EACCELERATOR1) doEACCELERATOR1; ;; EACCELERATOR2) doEACCELERATOR2; ;; FREETYPE) doFREETYPE; ;; WEBMINFREEBSD) doWEBMINFREEBSD; ;; WEBMIN) doWEBMIN; ;; MAILSCANNER) doMAILSCANNER; ;; MODCLAMAV) doMODCLAMAV; ;; FFMPEG) doFFMPEG; ;; SUHOSIN) doSUHOSIN; ;; NOBODYCHECK) doNOBODYCHECK; ;; SUPHPCHOWN) doSUPHPCHOWN; ;; IMAGEMAGICK) doIMAGEMAGICK; ;; IMAGEMAGICK1) doIMAGEMAGICK1; ;; IMAGEMAGICK2) doIMAGEMAGICK2; ;; GRAPHICSMAGICK) doGRAPHICSMAGICK; ;; MODANTILORIS) doMODANTILORIS; ;; PHPCLAMAV) doPHPCLAMAV; ;; * ) showHelp; exit 0; ;; esac ################################################## exit 0;