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