From 0acf4254d2df46f63837bd6b4a28c70aa3fc2442 Mon Sep 17 00:00:00 2001 From: "Esteban Mackay Q." Date: Wed, 29 Jan 2025 14:59:10 -0500 Subject: [PATCH] Update update.sh --- update.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/update.sh b/update.sh index 0d5ad25..06bca95 100644 --- a/update.sh +++ b/update.sh @@ -17,6 +17,18 @@ else fi case $choix in 1) +# Detectar el sistema operativo y su versión +if [ -f "/etc/os-release" ]; then + . /etc/os-release + OS=$ID + VERSION=$VERSION_ID +fi +if [ "$OS" == "debian" ] && [ "$VERSION" == "12" ]; then + whiptail --title "Info" --msgbox " DVSwitch Dashboard \n\n\ + Debian 12 no soporta dashboard DVSwitch DS5QDR \n\n\ + Debian 12 does not support DVSwitch DS5QDR dashboard" 0 50 + exit 1 +fi sudo bash -c "$(curl -fsSLk https://gitlab.com/hp3icc/emq-TE1/-/raw/main/install/update-dash-dvs.sh)" && bash -c "$(curl -fsSLk https://gitlab.com/hp3icc/emq-TE1/-/raw/main/install/nginx.sh)" && sudo bash -c "$(curl -fsSLk https://gitlab.com/hp3icc/emq-TE1/-/raw/main/menu/menu-dvs)"