Files
i2p.www/site-updater.sh

19 lines
518 B
Bash
Raw Normal View History

2013-08-14 22:18:06 +00:00
#!/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
2013-08-14 22:18:06 +00:00
if [ $? -eq 0 ]; then
echo "Translations updated, compiling messages"
./compile-messages.sh
fi
2013-08-29 06:57:23 +00:00
cat $TMP | grep "^mtn: updating 'i2p2www/.*\.py\|^mtn: updating 'i2p2www/.*/.*\.py" >/dev/null
2013-08-14 22:18:06 +00:00
if [ $? -eq 0 ]; then
echo "Python files changed, restarting server"
2013-08-14 22:21:59 +00:00
touch /tmp/2fcd2f17-c293-4f77-b4c9-9b266ba70daa
2013-08-14 22:18:06 +00:00
fi
rm $TMP