Zarafa quick install script

From SME Server
Revision as of 07:23, 27 November 2012 by RequestedDeletion (talk | contribs)
Jump to navigation Jump to search

The below script will install the latest Zarafa 7.0, including dependencies and custom templates as per http://wiki.contribs.org/Zarafa_on_SME8. Please be aware that you read the how-to carefully to fully understand what the below script will install, remove or modify!!. The script will asume it runs on a fresh and updated SME8 setup connected to the internet. The main reason for this script is to reduce the installation time required of installing Zarafa 7.0 on SME8.

What we actually need is a member that has RPM skills to create and maintain a SME8-Zarafa7 rpm. Interested anyone?


1. Log in as root and create an installation directory and move to that directory

2. Copy the below script and paste it into the installation directory as install-zarafa7.sh

3. Make install-zarafa.sh executable (chmod 755 install-zarafa7.sh)

4. Execute the script (./install-zarafa7.sh)

The script will take care of all downloads, templates and custom templates (as per the how-to) and will leave you at the point where you have to select language (UTF) and zarafa mechanism db or unix.

From there on you need to follow the how-to from here: http://wiki.contribs.org/Zarafa_on_SME8#Managing_Zarafa-users.2Fcompanies_:


install-zarafa7.sh

#!/bin/sh
clear
echo downloading Zarafa packages...
echo 
wget http://download.zarafa.com/community/final/7.0/7.0.10-37482/zcp-7.0.10-37482-rhel-5-`uname -m`-free.tar.gz
wget http://zarafa-deutschland.de/z-push-download/final/1.5/z-push-1.5.13-1514.tar.gz
echo 
echo download finished, unpacking...
eecho
tar zxvf zcp-7.0.10-37482-rhel-5-`uname -m`-free.tar.gz
tar zxvf z-push-1.5.13-1514.tar.gz
echo
echo done unpacking, now installing...                                                                                                                          
echo                                                                                                                                                            
cd zcp-7.0.10-37482-rhel-5-`uname -m`                                                                                       
yum -y localinstall *.rpm                                                                                                                                       
cd ..                                                                                                                                                           
/sbin/e-smith/db yum_repositories set epel repository \
Name 'Epel - EL5' \
BaseUrl 'http://download.fedoraproject.org/pub/epel/5/$basearch' \
MirrorList 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch' \
EnableGroups no \
GPGCheck yes \
GPGKey http://download.fedora.redhat.com/pub/epel/RPM-GPG-KEY-EPEL \
Visible no \
status disabled 
signal-event yum-modify                                                                                                                                         
rpm -e php-mapi --nodeps                                                                                                                                        
yum -y install php53-mapi --enablerepo=epel                                                                                                                     
echo                                                                                                                                                            
wget http://bugs.contribs.org/attachment.cgi?id=3566
mv attachment.cgi?id=3566 zarafa-templates.tar.gz
tar xvf zarafa-templates.tar.gz                                                                                                                                 
cd templates                                                                                                                                                    
chmod 755 install.sh                                                                                                                                            
./install.sh                                                                                                                                                    
cd ..
if [ `getconf LONG_BIT` = "64" ]
then
   echo "64-bit, creating symbolic link"
   ln -s /usr/lib64/zarafa /usr/lib/zarafa                                                                                                                         
fi
/bin/chmod 554 /etc/e-smith/events/actions/zarafa-install                                                                                                       
/etc/e-smith/events/actions/zarafa-install     
echo
echo
echo !!!! YOU SHOULD NOW PERFORM A 'signal-event post-upgrade; signal-event reboot' !!!