site-updater: ensure TOUCHFILE exists

This should prevent some application servers from continuously spamming the
logs in the event that TOUCHFILE can't be found.
This commit is contained in:
kytv
2014-02-23 18:20:58 +00:00
parent 92e7cf6fda
commit d424140ac2

View File

@@ -3,6 +3,8 @@ cd $(dirname $0)
. ./etc/update.vars
[ -f ./etc/update.vars.custom ] && . ./etc/update.vars.custom
[ ! -f $TOUCHFILE ] && touch $TOUCHFILE
TMP=$(mktemp XXXXXXXXXX)
trap 'rm -f $TMP;exit' 0 1 2 15