Update update.sh

This commit is contained in:
Esteban Mackay Q. 2025-01-29 14:59:10 -05:00
parent da96061e21
commit 0acf4254d2
1 changed files with 12 additions and 0 deletions

View File

@ -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)"