Update cyberpanel.sh

This commit is contained in:
WhatTheServer
2021-06-08 18:11:31 -04:00
committed by GitHub
parent 9b5069cf06
commit d0f81a63f5

View File

@@ -1752,7 +1752,29 @@ if [[ "$Server_OS" = "CentOS" ]] ; then
if [[ "$Server_OS_Version" = "7" ]] ; then
#all centos 7 specific post change goes here
:
if ! yum list installed lsphp74-devel ; then
yum install -y lsphp74-devel
fi
if [[ ! -f /usr/local/lsws/lsphp74/lib64/php/modules/zip.so ]] ; then
if yum list installed libzip-devel >/dev/null 2>&1 ; then
yum remove -y libzip-devel
fi
yum install -y https://cyberpanel.sh/misc/libzip-0.11.2-6.el7.psychotic.x86_64.rpm
yum install -y https://cyberpanel.sh/misc/libzip-devel-0.11.2-6.el7.psychotic.x86_64.rpm
yum install lsphp74-devel
if [[ ! -d /usr/local/lsws/lsphp74/tmp ]]; then
mkdir /usr/local/lsws/lsphp74/tmp
fi
/usr/local/lsws/lsphp74/bin/pecl channel-update pecl.php.net
/usr/local/lsws/lsphp74/bin/pear config-set temp_dir /usr/local/lsws/lsphp74/tmp
if /usr/local/lsws/lsphp74/bin/pecl install zip ; then
echo "extension=zip.so" >/usr/local/lsws/lsphp74/etc/php.d/20-zip.ini
chmod 755 /usr/local/lsws/lsphp74/lib64/php/modules/zip.so
else
echo -e "\nlsphp74-zip compilation failed..."
fi
#fix compile lsphp74-zip on centos 7
fi
fi
if [[ "$Server_OS_Version" = "8" ]] ; then