16 lines
299 B
Bash
16 lines
299 B
Bash
|
#! /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 $URL --remove-orphan --target=/scenery/ > $logfile 2>&1
|
||
|
|
||
|
|
||
|
# Post update hook
|
||
|
if [ -f "/config/post.sh" ]; then
|
||
|
/config/post.sh $logfile
|
||
|
fi
|