Changes

From SME Server
Jump to navigationJump to search
m
Do not replace php-mapi if server is SME 9
Line 1,187: Line 1,187:  
  /bin/echo
 
  /bin/echo
 
  /bin/echo "You must perform a signal-event post-upgrade;signal-event reboot"
 
  /bin/echo "You must perform a signal-event post-upgrade;signal-event reboot"
   
fi
 
fi
 
fi
 
fi
 
}
 
}
   −
clear
+
###############################################
# Start of the actual script
+
# Subroutine to set epel repo's if required
# Setting up epel and epel-testing repo's
+
###############################################
 +
epelrepos ()
 +
{
 
/sbin/e-smith/db yum_repositories set epel repository \
 
/sbin/e-smith/db yum_repositories set epel repository \
 
Name 'Epel - EL5' \
 
Name 'Epel - EL5' \
Line 1,214: Line 1,215:  
Visible no \
 
Visible no \
 
status disabled
 
status disabled
 +
signal-event yum-modify
 +
}
   −
signal-event yum-modify
      +
clear
 +
# Start of the actual script
 +
# Setting Zarafa and Z-Push Version numbers
 
ZVERSION=7.0.15-42709
 
ZVERSION=7.0.15-42709
 
PUSHVERSION=2.1.1-1788
 
PUSHVERSION=2.1.1-1788
Line 1,239: Line 1,244:  
rm -f *-dev*.rpm
 
rm -f *-dev*.rpm
 
yum -y localinstall *.rpm
 
yum -y localinstall *.rpm
rpm -e php-mapi --nodeps
+
if [ $RHV = "5" ]; then
yum -y install php53-mapi --enablerepo=epel,epel-testing
+
  epelrepos
 +
  rpm -e php-mapi --nodeps
 +
  yum -y install php53-mapi --enablerepo=epel,epel-testing
 +
fi
 
yum -y install php-posix
 
yum -y install php-posix
 
zarafainstall
 
zarafainstall

Navigation menu