Update data-mmdvm.sh

This commit is contained in:
Esteban Mackay Q 2023-10-18 00:04:24 -05:00
parent 62599a36e0
commit dd8055c916
1 changed files with 1 additions and 0 deletions

View File

@ -153,6 +153,7 @@ if systemctl is-active data-mmdvm.service; then
systemctl enable data-mmdvm.service
fi
if [ -z "$(ls -A /opt/data-files/ 2>/dev/null)" ]; then
echo "Update Hosts & DMRIds"
python3 /opt/data-mmdvm.py
fi
(crontab -l | grep -v "python3 /opt/data-mmdvm.py") | crontab -