Zarafa quick install script

From SME Server
Revision as of 07:44, 27 November 2012 by RequestedDeletion (talk | contribs) (Created page with "Work in progress, not working yet! #!/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-374...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Work in progress, not working yet!

#!/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 !!bugzilla location!!/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' !!!