From 4b59521e04018bfb94c95739daed3ab1634a0621 Mon Sep 17 00:00:00 2001 From: Script Proyect by HP3ICC Date: Wed, 22 May 2024 00:02:59 +0000 Subject: [PATCH] Update update.sh --- update.sh | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/update.sh b/update.sh index cc63ccd..3d98db1 100644 --- a/update.sh +++ b/update.sh @@ -319,7 +319,7 @@ then variable=0000 fi -SERVICIOS=("adn-server.service" "freedmr.service" "proxy.service" "adn-parrot.service" "parrot.service") +SERVICIOS=("adn-server.service" "freedmr.service" "proxy.service" "adn-parrot.service" "fdmrparrot.service") for servicio in "${SERVICIOS[@]}"; do # Verificar si el servicio existe @@ -342,7 +342,22 @@ for servicio in "${SERVICIOS[@]}"; do echo "El servicio $servicio no existe." fi done - +if [ -f "/lib/systemd/system/fdmrparrot.service" ]; +then + rm /lib/systemd/system/fdmrparrot.service +fi +if [ -f "/lib/systemd/system/freedmr.service" ]; +then + rm /lib/systemd/system/freedmr.service +fi +if [ -f "/opt/FreeDMR/config/FreeDMR.cfg" ]; +then + mv /opt/FreeDMR/config/FreeDMR.cfg /opt/Old_Config-FreeDMR.cfg +fi +if [ -d "/opt/FreeDMR" ]; +then + rm -r /opt/FreeDMR/ +fi ######################### #Service sudo cat > /lib/systemd/system/proxy.service <<- "EOF"