I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 4e5b6790 authored by str4d's avatar str4d
Browse files

Added site updater

parent e3d2a4a2
No related branches found
No related tags found
No related merge requests found
#!/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"
supervisorctl restart mainsite
fi
rm $TMP
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment