Update data-mmdvm.sh

This commit is contained in:
Esteban Mackay Q 2023-10-18 00:02:27 -05:00
parent f4c7e08bcb
commit 62599a36e0
1 changed files with 3 additions and 1 deletions

View File

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