From 93bd9dfcb2686dff64fae2b8dc9f1d282a1531ad Mon Sep 17 00:00:00 2001 From: dev <dev@welterde.de> Date: Wed, 28 Aug 2013 23:13:27 +0000 Subject: [PATCH] oops.. forgot that file --- site-updater-i2hq.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 site-updater-i2hq.sh diff --git a/site-updater-i2hq.sh b/site-updater-i2hq.sh new file mode 100755 index 000000000..51b9357e8 --- /dev/null +++ b/site-updater-i2hq.sh @@ -0,0 +1,18 @@ +#!/bin/sh +TMP=tmp + +mtn update 2>&1 | tee $TMP + +cat $TMP | grep "^mtn: adding 'i2p2www/translations/\|^mtn: dropping 'i2p2www/translations/\|^mtn: updating 'i2p2www/translations/" >/dev/null +if [ $? -eq 0 ]; then + echo "Translations updated, compiling messages" + ./compile-messages-i2hq.sh +fi + +cat $TMP | grep "^mtn: updating 'i2p2www/.*/.*\.py" >/dev/null +if [ $? -eq 0 ]; then + echo "Python files changed, restarting server" + touch /tmp/2fcd2f17-c293-4f77-b4c9-9b266ba70daa +fi + +rm $TMP -- GitLab