Update install.sh

This commit is contained in:
amidevous
2024-06-04 19:37:03 +02:00
committed by GitHub
parent 551df69447
commit 487e0a7bcc
+7
View File
@@ -31,6 +31,13 @@ elif [ -f /etc/os-release ]; then
VER=$(uname -r) VER=$(uname -r)
fi fi
ARCH=$(uname -m) ARCH=$(uname -m)
echo "Detected : $OS $VER $ARCH"
if [[ "$OS" = "Ubuntu" && ( "$VER" = "18.04" || "$VER" = "20.04" || "$VER" = "22.04" || "$VER" = "24.04" ) && "$ARCH" == "x86_64" ]] ; then
echo "Ok."
else
echo "Sorry, this OS is not supported by Xtream UI use online Ubuntu LTS Version."
exit 1
fi
if [ -f "/usr/bin/apt-get" ]; then if [ -f "/usr/bin/apt-get" ]; then
apt-get update apt-get update
apt-get -y dist-upgrade apt-get -y dist-upgrade