From 69ee603d284baa5b7a5428810c720b37cce0bc04 Mon Sep 17 00:00:00 2001 From: RaspbianProyect by HP3ICC Date: Sun, 12 Feb 2023 15:11:30 +0000 Subject: [PATCH] Update update.sh --- update.sh | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/update.sh b/update.sh index bb90005..f34f50b 100644 --- a/update.sh +++ b/update.sh @@ -99,21 +99,6 @@ exit 0 EOF ######################################### FreeDMR Update ############################################################### -sudo cat > /opt/fdmr-update.sh <<- "EOF" -#!/bin/bash -variable=$(grep "SERVER_ID:" /opt/FreeDMR/config/FreeDMR.cfg | tail -c 5) -sudo systemctl stop freedmr.service -sudo systemctl stop proxy.service -sudo systemctl stop fdmrparrot.service -rm -r /opt/FreeDMR -cd /opt -git clone https://gitlab.hacknix.net/hacknix/FreeDMR.git -sudo rm /opt/FreeDMR/hotspot_proxy_v2.py -cd FreeDMR -mkdir config -mkdir /var/log/FreeDMR -chmod +x /opt/FreeDMR/install.sh -./install.sh sudo cat > /opt/conf.txt <<- "EOF" [D-APRS] @@ -187,6 +172,22 @@ VOICE_IDENT: False EOF ## +sudo cat > /opt/fdmr-update.sh <<- "EOF" +#!/bin/bash +variable=$(grep "SERVER_ID:" /opt/FreeDMR/config/FreeDMR.cfg | tail -c 5) +sudo systemctl stop freedmr.service +sudo systemctl stop proxy.service +sudo systemctl stop fdmrparrot.service +rm -r /opt/FreeDMR +cd /opt +git clone https://gitlab.hacknix.net/hacknix/FreeDMR.git +sudo rm /opt/FreeDMR/hotspot_proxy_v2.py +cd FreeDMR +mkdir config +mkdir /var/log/FreeDMR +chmod +x /opt/FreeDMR/install.sh +./install.sh + if [ -z "$variable" ] then variable=0000