revert (partial) bcf7ff90d8
This commit is contained in:
parent
bcf7ff90d8
commit
70c00eadc2
2 changed files with 23 additions and 55 deletions
23
osm-garmin/app/daemon.sh
Normal file
23
osm-garmin/app/daemon.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue