Update install.sh

This commit is contained in:
amidevous
2023-10-17 00:33:13 +02:00
committed by GitHub
parent ffa47662a0
commit ea0962b7bd
+5
View File
@@ -35,6 +35,9 @@ elif [ -f /etc/os-release ]; then
fi fi
ARCH=$(uname -m) ARCH=$(uname -m)
wget https://raw.githubusercontent.com/amidevous/xtream-ui-ubuntu20.04/master/install-dep.sh -O /root/install-dep.sh && bash /root/install-dep.sh wget https://raw.githubusercontent.com/amidevous/xtream-ui-ubuntu20.04/master/install-dep.sh -O /root/install-dep.sh && bash /root/install-dep.sh
NON=non
if [[ "$NON" = "oui" ]] ; then
echo "test"
if [[ "$OS" = "CentOs" && "$VER" = "6" && "$ARCH" == "x86_64" ]] ; then if [[ "$OS" = "CentOs" && "$VER" = "6" && "$ARCH" == "x86_64" ]] ; then
/opt/rh/devtoolset-9/enable /opt/rh/devtoolset-9/enable
source /opt/rh/devtoolset-9/enable source /opt/rh/devtoolset-9/enable
@@ -278,10 +281,12 @@ if [ ! -f "/home/xui/bin/php/lib/php/extensions/no-debug-non-zts-20190902/ioncub
fi fi
#cd /root #cd /root
#wget --no-check-certificate https://raw.githubusercontent.com/amidevous/xtream-ui-ubuntu20.04/master/ubuntu/php.ini -O /home/xui/bin/php/lib/php.ini #wget --no-check-certificate https://raw.githubusercontent.com/amidevous/xtream-ui-ubuntu20.04/master/ubuntu/php.ini -O /home/xui/bin/php/lib/php.ini
rm -rf /home/xui/bin/php/etc/*
cd /root cd /root
rm -rf /root/phpbuild/ rm -rf /root/phpbuild/
sudo bash -c "echo 1 > /home/xui/bin/php-7.4.33" sudo bash -c "echo 1 > /home/xui/bin/php-7.4.33"
fi fi
fi
if [ -f "/usr/bin/dpkg-buildflags" ]; then if [ -f "/usr/bin/dpkg-buildflags" ]; then
apt-get -y install python python-dev unzip apt-get -y install python python-dev unzip