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