Update update.sh

merge-requests/1/head
Script Proyect by HP3ICC 2 years ago
parent 954ed0636d
commit 4b59521e04

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

Loading…
Cancel
Save

Powered by TurnKey Linux.