mirror of https://gitlab.com/hp3icc/fdmr.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.1 KiB
32 lines
1.1 KiB
#!/bin/bash
|
|
|
|
# Verificar si el usuario tiene permisos de root
|
|
if [[ $EUID -ne 0 ]]; then
|
|
echo "Este script debe ejecutarse como usuario ROOT"
|
|
exit 1
|
|
fi
|
|
#whiptail --title "FreeDMR Bridge - Update" --msgbox "scrip sin actualizaciones disponibles / scrip no updates available" 0 50
|
|
|
|
##############
|
|
#!/bin/bash
|
|
if ! grep -q "Web-Dashboar-name" "/opt/wdp7" > /dev/null 2>&1; then
|
|
sudo cat > /opt/wdp7 <<- "EOFX"
|
|
################################################
|
|
# Select number port, FreeDMR-Bridge Dashboard #
|
|
################################################
|
|
|
|
Web-Dashboar-name: freedmr-bidge
|
|
Web-Dashboar-Port: 80
|
|
Web-Dashboar-dns:
|
|
Web-Dashboar-dir: /var/www/fdmr-b2
|
|
Web-Dashboar-select: fdmr_mon-b2
|
|
Web-Dashboar-soft: /opt/FDMR-Monitor-B2
|
|
|
|
EOFX
|
|
fi
|
|
if [ -f "/etc/nginx/sites-available/000" ]; then
|
|
bash -c "$(curl -fsSLk https://gitlab.com/hp3icc/emq-TE1/-/raw/main/install/nginx.sh)"
|
|
fi
|
|
bash -c "$(curl -fsSLk https://gitlab.com/hp3icc/emq-TE1/-/raw/main/menu/menu-fdmr-bridge)"
|
|
whiptail --title "FreeDMR Bridge - Update" --msgbox "scrip sin actualizaciones disponibles / scrip no updates available" 0 50
|