This commit is contained in:
Esteban Mackay Q. 2024-12-11 01:16:26 -05:00
parent 6f30137a46
commit bc274a4042
2 changed files with 21 additions and 25 deletions

View File

@ -45,26 +45,6 @@ sed -i "s/www\/html/www\/dvs/g" /usr/local/sbin/update-config.sh
sed -i "s/www\/html/www\/dvs/g" /var/lib/dpkg/info/dvswitch* sed -i "s/www\/html/www\/dvs/g" /var/lib/dpkg/info/dvswitch*
sed -i "s/Language=en_US/Language=es_ES/g" /opt/NXDNGateway/NXDNGateway.ini sed -i "s/Language=en_US/Language=es_ES/g" /opt/NXDNGateway/NXDNGateway.ini
sed -i "s/Language=en_US/Language=es_ES/g" /opt/P25Gateway/P25Gateway.ini sed -i "s/Language=en_US/Language=es_ES/g" /opt/P25Gateway/P25Gateway.ini
sed -i "s/8080/9009/g" /var/www/dvs/include/*.*
if [ ! -d "/var/www/dvs/qrz_photo" ]
then
sudo mkdir /var/www/dvs/qrz_photo
fi
sudo chmod o+w /var/www/dvs/qrz_photo
if grep -q "8080" /lib/systemd/system/webproxy.service; then
systemctl stop webproxy.service
sed -i "s/8080/9009/g" /opt/Web_Proxy/proxy.js
sed -i "s/8080/9009/g" /lib/systemd/system/webproxy.service
systemctl daemon-reload
fi
if ! sudo systemctl status webproxy.service |grep "service; enabled;" >/dev/null 2>&1
then
sudo systemctl enable webproxy.service
fi
if ! systemctl status webproxy.service |grep "Active: active" >/dev/null 2>&1
then sudo systemctl restart webproxy.service
fi
# #
sudo cat > /opt/MMDVM_Bridge/MMDVM_Bridge.ini <<- "EOF" sudo cat > /opt/MMDVM_Bridge/MMDVM_Bridge.ini <<- "EOF"
[General] [General]

View File

@ -10,7 +10,7 @@ if ! [ -d "/etc/asterisk" ]; then
exit 0 exit 0
fi fi
while : ; do while : ; do
choix=$(whiptail --title "Raspbian Proyect HP3ICC Menu AllStarLink" --menu "Suba o Baje con las flechas del teclado y seleccione el numero de opcion" 15 50 5 \ choix=$(whiptail --title "Script Proyect HP3ICC Menu AllStarLink" --menu "Suba o Baje con las flechas del teclado y seleccione el numero de opcion" 15 50 5 \
1 " Easy ASL-Config Echolink " \ 1 " Easy ASL-Config Echolink " \
2 " Easy ASL-Bridge-DMR " \ 2 " Easy ASL-Bridge-DMR " \
3 " asl-menu " \ 3 " asl-menu " \
@ -53,7 +53,7 @@ if ! [ -d "/etc/asterisk" ]; then
exit 0 exit 0
fi fi
while : ; do while : ; do
choix=$(whiptail --title "Raspbian Proyect HP3ICC Menu AllStarLink" --menu "Suba o Baje con las flechas del teclado y seleccione el numero de opcion" 15 50 6 \ choix=$(whiptail --title "Script Proyect HP3ICC Menu AllStarLink" --menu "Suba o Baje con las flechas del teclado y seleccione el numero de opcion" 15 50 6 \
1 " Easy ASL-Config Echolink " \ 1 " Easy ASL-Config Echolink " \
2 " Easy ASL-Bridge-DMR " \ 2 " Easy ASL-Bridge-DMR " \
3 " Dashboard Allmon3 " \ 3 " Dashboard Allmon3 " \
@ -99,7 +99,7 @@ if ! [ -d "/etc/asterisk" ]; then
exit 0 exit 0
fi fi
while : ; do while : ; do
choix=$(whiptail --title "Raspbian Proyect HP3ICC Menu AllMon3" --menu "Suba o Baje con las flechas del teclado y seleccione el numero de opcion" 15 50 9 \ choix=$(whiptail --title "Script Proyect HP3ICC Menu AllMon3" --menu "Suba o Baje con las flechas del teclado y seleccione el numero de opcion" 15 50 9 \
1 " Setup Port http & dns Dashboard " \ 1 " Setup Port http & dns Dashboard " \
2 " Start Dashboard Allmon3 " \ 2 " Start Dashboard Allmon3 " \
3 " Stop Dashboard Allmon3 " \ 3 " Stop Dashboard Allmon3 " \
@ -411,6 +411,22 @@ fi
;; ;;
7) 7)
allmon3-passwd allmon3 allmon3-passwd allmon3
# Lista de servicios a reiniciar
servicios=("allmon3")
# Recorre la lista de servicios y verifica si están activos
for servicio in "${servicios[@]}"; do
if systemctl status "$servicio" | grep "service; enabled;" >/dev/null 2>&1; then
echo "restart $servicio"
sudo systemctl stop "$servicio"
sudo systemctl start "$servicio"
else
echo "start $servicio"
sudo systemctl stop "$servicio"
sudo systemctl start "$servicio"
sudo systemctl enable "$servicio"
fi
done
;; ;;
8) 8)
break break
@ -508,7 +524,7 @@ if ! [ -d "/etc/asterisk" ]; then
exit 0 exit 0
fi fi
while : ; do while : ; do
choix=$(whiptail --title "Raspbian Proyect HP3ICC Menu ASL-Config Echolink" --menu "Suba o Baje con las flechas del teclado y seleccione el numero de opcion" 20 55 10 \ choix=$(whiptail --title "Script Proyect HP3ICC Menu ASL-Config Echolink" --menu "Suba o Baje con las flechas del teclado y seleccione el numero de opcion" 20 55 10 \
1 " Easy Setup ASL-Config Echolink " \ 1 " Easy Setup ASL-Config Echolink " \
2 " Iniciar AllStarLink " \ 2 " Iniciar AllStarLink " \
3 " Detener AllStarLink " \ 3 " Detener AllStarLink " \
@ -867,7 +883,7 @@ if ! [ -d "/etc/asterisk" ]; then
exit 0 exit 0
fi fi
while : ; do while : ; do
choix=$(whiptail --title "Raspbian Proyect HP3ICC Menu ASL-Bridge-DMR" --menu "Suba o Baje con las flechas del teclado y seleccione el numero de opcion" 20 50 11 \ choix=$(whiptail --title "Script Proyect HP3ICC Menu ASL-Bridge-DMR" --menu "Suba o Baje con las flechas del teclado y seleccione el numero de opcion" 20 50 11 \
1 " Easy setup ASLBridge DMR" \ 1 " Easy setup ASLBridge DMR" \
2 " Iniciar Bridge " \ 2 " Iniciar Bridge " \
3 " Detener Bridge " \ 3 " Detener Bridge " \