Difference between revisions of "Zarafa quick install script"

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

Revision as of 15:30, 27 November 2012

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

<nowiki>
  1. !/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... echo 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' !!!