19 lines
410 B
Bash
Executable File
19 lines
410 B
Bash
Executable File
#!/bin/sh
|
|
TMP=tmp
|
|
|
|
mtn update 2>&1 | tee $TMP
|
|
|
|
cat $TMP | grep "^mtn: updating 'i2p2www/translations/" >/dev/null
|
|
if [ $? -eq 0 ]; then
|
|
echo "Translations updated, compiling messages"
|
|
./compile-messages.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
|