mirror of https://gitlab.com/hp3icc/emq-TE1.git
Update update.sh
This commit is contained in:
parent
6f769795eb
commit
fef5ab5694
23
update.sh
23
update.sh
|
|
@ -5,8 +5,9 @@ while : ; do
|
|||
choix=$(whiptail --title "Raspbian Proyect HP3ICC Menu Update" --menu "Nota Importante: solo actualice aplicaciones que esten en uso, al finalizar la actualizacion la aplicacion se reiniciara, tenga pleno dominio de las configuraciones de cada aplicacion, antes de actualizar.
|
||||
" 17 50 5 \
|
||||
1 " UPDATE DASHBOARD DVSwitch DS5QDR " \
|
||||
2 " ADVANCE UPGRADE & INSTALL " \
|
||||
3 " Menu Principal " 3>&1 1>&2 2>&3)
|
||||
2 " UPDATE Host Files DVSwitch " \
|
||||
3 " ADVANCE UPGRADE & INSTALL " \
|
||||
4 " Menu Principal " 3>&1 1>&2 2>&3)
|
||||
exitstatus=$?
|
||||
#on recupere ce choix
|
||||
#exitstatus=$?
|
||||
|
|
@ -20,8 +21,22 @@ case $choix in
|
|||
1)
|
||||
bash -c "$(curl -fsSL https://gitlab.com/hp3icc/emq-TE1/-/raw/main/install/update-dash-dvs.sh)" ;;
|
||||
2)
|
||||
menu-update2 ;;
|
||||
3)
|
||||
sudo /usr/local/sbin/DVSM_Update.sh &&
|
||||
#!/bin/bash
|
||||
|
||||
# Lista de servicios a reiniciar
|
||||
servicios=("mmdvm_bridge.service" "nxdngateway.service" "p25gateway.service" "ysfgateway.service" "ircddbgatewayd.service")
|
||||
|
||||
# Recorre la lista de servicios y verifica si están activos
|
||||
for servicio in "${servicios[@]}"; do
|
||||
if systemctl status "$servicio" | grep "Active: active" >/dev/null 2>&1; then
|
||||
# echo "Reiniciando el servicio $servicio"
|
||||
sudo systemctl restart "$servicio"
|
||||
fi
|
||||
done
|
||||
;;
|
||||
3)menu-update2 ;;
|
||||
4)
|
||||
break;
|
||||
esac
|
||||
done
|
||||
|
|
|
|||
Loading…
Reference in New Issue