From 0eeafc802a2a1a8c75a1530161232fe14ca3feae Mon Sep 17 00:00:00 2001 From: Script Proyect by HP3ICC Date: Tue, 21 May 2024 14:49:30 +0000 Subject: [PATCH] Update install.sh --- install.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index 7056017..8ae9200 100644 --- a/install.sh +++ b/install.sh @@ -56,17 +56,19 @@ else echo "file not found" fi -if [ -f "/opt/ADN-DMR-Peer-Server/config/adn.cfg" ]; +if [ -f "/opt/FreeDMR/config/FreeDMR.cfg" ] +then + variable=$(grep "SERVER_ID:" /opt/FreeDMR/config/FreeDMR.cfg | grep -Eo '[0-9]{1,9}') +fi +if [ -f "/opt/ADN-DMR-Peer-Server/config/adn.cfg" ] then variable=$(grep "SERVER_ID:" /opt/ADN-DMR-Peer-Server/config/adn.cfg | grep -Eo '[0-9]{1,9}') - else - echo "id not found" - fi if [ -z "$variable" ] then variable=0000 fi + ################################### if [ -d "/var/log/ADN" ]