forked from I2P_Developers/i2p.www
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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user