Changes

Jump to navigation Jump to search
m
Make installation directory a variable
Line 1,221: Line 1,221:  
clear
 
clear
 
# Start of the actual script
 
# Start of the actual script
# Setting Zarafa and Z-Push Version numbers, and detect SME Server major version and architecture
+
# Setting Zarafa and Z-Push Version numbers, detect SME Server major version and architecture and set install directory
 
ZVERSION=7.0.15-42709
 
ZVERSION=7.0.15-42709
 
PUSHVERSION=2.1.1-1788
 
PUSHVERSION=2.1.1-1788
 +
INSTALLDIR=/root/install/zarafa
 
if [ `$(cat /etc/redhat-release|grep -o 8` = "8"); then
 
if [ `$(cat /etc/redhat-release|grep -o 8` = "8"); then
 
   RHV=5
 
   RHV=5
Line 1,234: Line 1,235:  
   CPUARCH=i386
 
   CPUARCH=i386
 
fi
 
fi
mkdir -p /root/install/zarafa
+
mkdir -p $INSTALLDIR
cd /root/install/zarafa
+
cd $INSTALLDIR
 
wget http://zarafa-deutschland.de/z-push-download/final/2.1/z-push-$PUSHVERSION.tar.gz  
 
wget http://zarafa-deutschland.de/z-push-download/final/2.1/z-push-$PUSHVERSION.tar.gz  
 
wget http://download.zarafa.com/community/final/7.0/$ZVERSION/zcp-$ZVERSION-rhel-$RHV-$CPUARCH-free.tar.gz
 
wget http://download.zarafa.com/community/final/7.0/$ZVERSION/zcp-$ZVERSION-rhel-$RHV-$CPUARCH-free.tar.gz
tar -zxvf /root/install/zarafa/z-push-$PUSHVERSION.tar.gz -C /usr/share
+
tar -zxvf $INSTALLDIR/z-push-$PUSHVERSION.tar.gz -C /usr/share
 
mv /usr/share/z-push-$PUSHVERSION /usr/share/z-push
 
mv /usr/share/z-push-$PUSHVERSION /usr/share/z-push
 
tar -zxvf zcp-$ZVERSION-rhel-$CPUARCH-free.tar.gz
 
tar -zxvf zcp-$ZVERSION-rhel-$CPUARCH-free.tar.gz

Navigation menu