Update install.sh

merge-requests/1/head
Script Proyect by HP3ICC 2 years ago
parent b840d6dc00
commit 0eeafc802a

@ -56,17 +56,19 @@ else
echo "file not found" echo "file not found"
fi 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 then
variable=$(grep "SERVER_ID:" /opt/ADN-DMR-Peer-Server/config/adn.cfg | grep -Eo '[0-9]{1,9}') variable=$(grep "SERVER_ID:" /opt/ADN-DMR-Peer-Server/config/adn.cfg | grep -Eo '[0-9]{1,9}')
else
echo "id not found"
fi fi
if [ -z "$variable" ] if [ -z "$variable" ]
then variable=0000 then variable=0000
fi fi
################################### ###################################
if [ -d "/var/log/ADN" ] if [ -d "/var/log/ADN" ]

Loading…
Cancel
Save

Powered by TurnKey Linux.