2
0
Fork 0
containerfiles/osm-garmin/app/daemon.sh

19 lines
360 B
Bash
Raw Normal View History

2023-09-26 03:13:31 +02:00
#!/usr/bin/env bash
. /app/utils.sh
2023-09-26 05:02:17 +02:00
sleep_time=3600
2023-09-26 03:13:31 +02:00
while :
do
2023-09-26 04:12:12 +02:00
regions="europe/great-britain"
style=""
2023-09-26 03:13:31 +02:00
[[ -n "$OSMGARMIN_REGIONS" ]] && regions="$OSMGARMIN_REGIONS"
[[ -n "$OSMGARMIN_STYLE" ]] && style="$OSMGARMIN_STYLE"
2023-09-26 05:01:15 +02:00
/app/build-gmap.sh "$regions" "$style"
2023-09-26 04:41:53 +02:00
2023-09-26 05:02:17 +02:00
echo "💤 Sleeping $sleep_time seconds..."
sleep $sleep_time
2023-09-26 03:13:31 +02:00
done