Update install.sh

pull/130/head
midoks 3 years ago
parent e67b3187a3
commit 0eabbf2967
  1. 39
      plugins/php/versions/52/install.sh

@ -12,45 +12,6 @@ install_tmp=${rootPath}/tmp/mw_install.pl
_os=`uname`
echo "use system: ${_os}"
if [ ${_os} == "Darwin" ]; then
OSNAME='macos'
elif grep -Eqi "CentOS" /etc/issue || grep -Eq "CentOS" /etc/*-release; then
OSNAME='centos'
elif grep -Eqi "Fedora" /etc/issue || grep -Eq "Fedora" /etc/*-release; then
OSNAME='fedora'
elif grep -Eqi "Rocky" /etc/issue || grep -Eq "Rocky" /etc/*-release; then
OSNAME='rocky'
elif grep -Eqi "AlmaLinux" /etc/issue || grep -Eq "AlmaLinux" /etc/*-release; then
OSNAME='alma'
elif grep -Eqi "Debian" /etc/issue || grep -Eq "Debian" /etc/*-release; then
OSNAME='debian'
elif grep -Eqi "Ubuntu" /etc/issue || grep -Eq "Ubuntu" /etc/*-release; then
OSNAME='ubuntu'
elif grep -Eqi "Raspbian" /etc/issue || grep -Eq "Raspbian" /etc/*-release; then
OSNAME='raspbian'
else
OSNAME='unknow'
fi
# if [ "$OSNAME" == 'ubuntu' ] || [ "$OSNAME" == 'debian' ] ;then
# apt install bison=2.4.1
# if [ "$?" != "0" ]; then
# echo 'The system version is too high to install'
# exit 1
# fi
# apt install flex=2.5.4
# if [ "$?" != "0" ]; then
# echo 'The system version is too high to install'
# exit 1
# fi
# fi
version=5.2.17
PHP_VER=52
Install_php()

Loading…
Cancel
Save