From 7a73265125f56e1d30b37f2d0c0e4a7c3e525f5a Mon Sep 17 00:00:00 2001 From: Script Proyect by HP3ICC Date: Fri, 24 May 2024 04:32:11 +0000 Subject: [PATCH] Update update.sh --- update.sh | 37 +++++++++++++++++-------------------- 1 file changed, 17 insertions(+), 20 deletions(-) diff --git a/update.sh b/update.sh index fbdb982..5a78d9f 100644 --- a/update.sh +++ b/update.sh @@ -994,30 +994,27 @@ sudo chmod +x /opt/monitor-update.sh sudo chmod +x /bin/menu* sudo chmod +x /opt/monitor-update2.sh -if [ -d "/opt/ADN-DMR-Peer-Server/" ] -then +if [ -d "/opt/ADN-DMR-Peer-Server/" ]; then menu-update else -bash -c "$(curl -fsSLk https://gitlab.com/hp3icc/fdmr/-/raw/main/install.sh)" -sudo systemctl daemon-reload -sudo systemctl start proxy.service -sudo systemctl start adn-server.service -sudo systemctl start adn-parrot.service -sudo systemctl enable proxy.service -sudo systemctl enable adn-server.service -sudo systemctl enable adn-parrot.service - -#!/bin/bash + bash -c "$(curl -fsSLk https://gitlab.com/hp3icc/fdmr/-/raw/main/install.sh)" + sudo systemctl daemon-reload + sudo systemctl start proxy.service + sudo systemctl start adn-server.service + sudo systemctl start adn-parrot.service + sudo systemctl enable proxy.service + sudo systemctl enable adn-server.service + sudo systemctl enable adn-parrot.service -# Mensaje en español e inglés, separados por una línea en blanco -mensaje="El software de su servidor ha sido actualizado a la versión ADN-DMR-Peer-Server. Por favor, salga por completo del menú e ingrese a: menu-adn + if [ -f "/bin/menu" ]; then + bash -c "$(curl -fsSLk https://gitlab.com/hp3icc/emq-TE1/-/raw/main/menu/menu)" + fi -The software on your server has been updated to version ADN-DMR-Peer-Server. Please exit the menu completely and enter: menu-adn" + # Mensaje en español e inglés, separados por una línea en blanco + mensaje="El software de su servidor ha sido actualizado a la versión ADN-DMR-Peer-Server. Por favor, salga por completo del menú e ingrese a: menu-adn -# Usar whiptail para mostrar el mensaje -whiptail --title "Actualización de Software / Software Update" --msgbox "$mensaje" 15 60 + The software on your server has been updated to version ADN-DMR-Peer-Server. Please exit the menu completely and enter: menu-adn" + # Usar whiptail para mostrar el mensaje + whiptail --title "Actualización de Software / Software Update" --msgbox "$mensaje" 15 60 fi - - -