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