easy-osm2city-podman/terrasync/run.sh
fly 582c9d53d8 Let user configure url
Signed-off-by: fly <merspieler@airmail.cc>
2021-08-30 23:21:51 +02:00

15 lines
313 B
Bash
Executable file

#! /bin/bash
logfile=/log/$(date +%Y-%m-%d).log
# Pre update hook
if [ -f "/config/pre.sh" ]; then
/config/pre.sh $logfile
fi
/TerraSync/terrasync.py --url $(cat /config/url) --remove-orphan --target=/scenery/ > $logfile 2>&1
# Post update hook
if [ -f "/config/post.sh" ]; then
/config/post.sh $logfile
fi