From 089ed11719bfe7a34646b434c0c6a483cb7678b3 Mon Sep 17 00:00:00 2001 From: qtwrk Date: Sat, 1 Feb 2020 17:08:35 +0100 Subject: [PATCH] install lsphp74-dev --- cyberpanel_upgrade.sh | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/cyberpanel_upgrade.sh b/cyberpanel_upgrade.sh index e0bbfffdd..693b309a1 100644 --- a/cyberpanel_upgrade.sh +++ b/cyberpanel_upgrade.sh @@ -170,16 +170,26 @@ fi install_utility +if [[ $SERVER_OS == "CentOS7" ]] ; then +yum list installed lsphp74-devel + if [[ $? != "0" ]] ; then + yum install -y lsphp74-devel + fi +fi + +if [[ $SERVER_OS == "Ubuntu" ]] ; then + dpkg -l lsphp74-dev + if [[ $? != "0" ]] ; then + apt install -y lsphp74-dev + fi +fi + if [[ ! -f /usr/local/lsws/lsphp74/lib64/php/modules/zip.so ]] && [[ $SERVER_OS == "CentOS7" ]] ; then yum list installed libzip-devel if [[ $? == "0" ]] ; then yum remove -y libzip-devel fi - yum list installed lsphp74-devel - if [[ $? != "0" ]] ; then - yum install -y lsphp74-devel - fi - + yum install -y http://packages.psychotic.ninja/7/plus/x86_64/RPMS/libzip-0.11.2-6.el7.psychotic.x86_64.rpm yum install -y http://packages.psychotic.ninja/7/plus/x86_64/RPMS/libzip-devel-0.11.2-6.el7.psychotic.x86_64.rpm /usr/local/lsws/lsphp74/bin/pecl install zip