From 61f604c898f4113323b04c8165cd20d0505567da Mon Sep 17 00:00:00 2001 From: str4d <str4d@mail.i2p> Date: Mon, 9 Dec 2013 11:23:37 +0000 Subject: [PATCH] Define site-updater touch file in update vars To use Apache mod_wsgi, change $TOUCHFILE to point to the WSGI file, and set "WSGIScriptReloading On" in the Apache config. --- etc/update.vars | 1 + site-updater-i2hq.sh | 2 +- site-updater.sh | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/etc/update.vars b/etc/update.vars index 008970c00..1d9b02303 100644 --- a/etc/update.vars +++ b/etc/update.vars @@ -1,2 +1,3 @@ MTNURL=127.0.0.1:8998 MTNBRANCH=i2p.www.revamp +TOUCHFILE=/tmp/2fcd2f17-c293-4f77-b4c9-9b266ba70daa diff --git a/site-updater-i2hq.sh b/site-updater-i2hq.sh index d0cf2f28f..20652820e 100755 --- a/site-updater-i2hq.sh +++ b/site-updater-i2hq.sh @@ -15,5 +15,5 @@ fi if grep "^mtn: updating 'i2p2www/.*\.py\|^mtn: updating 'i2p2www/.*/.*\.py" "$TMP" >/dev/null ; then echo "Python files changed, restarting server" - touch /tmp/2fcd2f17-c293-4f77-b4c9-9b266ba70daa + touch $TOUCHFILE fi diff --git a/site-updater.sh b/site-updater.sh index 15cb49da2..73f77c672 100755 --- a/site-updater.sh +++ b/site-updater.sh @@ -15,5 +15,5 @@ fi if grep "^mtn: updating 'i2p2www/.*\.py\|^mtn: updating 'i2p2www/.*/.*\.py" "$TMP" >/dev/null ; then echo "Python files changed, restarting server" - touch /tmp/2fcd2f17-c293-4f77-b4c9-9b266ba70daa + touch $TOUCHFILE fi -- GitLab