2
0
Fork 0

revert (partial) bcf7ff90d8

This commit is contained in:
Ducky 2023-10-02 16:45:34 +01:00
parent bcf7ff90d8
commit 70c00eadc2
2 changed files with 23 additions and 55 deletions

23
osm-garmin/app/daemon.sh Normal file
View file

@ -0,0 +1,23 @@
#!/usr/bin/env bash
. /app/utils.sh
sleep_time=3600
sleep_time_fail=60
function wait() {
delay="$1"
echo "💤 Sleeping $delay seconds..."
sleep $delay
}
while :
do
/app/build-gmap.sh "$OSMGARMIN_REGIONS" "$OSMGARMIN_STYLE"
if [[ $? == 0 ]]; then
wait $sleep_time
else
wait $sleep_time_fail
fi
done