summaryrefslogtreecommitdiff
path: root/herculeswrapper
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-10 03:26:44 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-10 03:26:44 +0300
commitce5830cc30270be547bc53894bc3ce5a590c54cc (patch)
treea6c1a73e68b3c61192596607cf9af225535b333b /herculeswrapper
parenta56e62f2a9f5765af8294f77658b2ec9d7effc1e (diff)
downloadevol-tools-ce5830cc30270be547bc53894bc3ce5a590c54cc.tar.gz
evol-tools-ce5830cc30270be547bc53894bc3ce5a590c54cc.tar.bz2
evol-tools-ce5830cc30270be547bc53894bc3ce5a590c54cc.tar.xz
evol-tools-ce5830cc30270be547bc53894bc3ce5a590c54cc.zip
herculeswrapper: add support for git pull and build code.
Diffstat (limited to 'herculeswrapper')
-rwxr-xr-xherculeswrapper/map.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/herculeswrapper/map.sh b/herculeswrapper/map.sh
index 9efa0a4..7cbad34 100755
--- a/herculeswrapper/map.sh
+++ b/herculeswrapper/map.sh
@@ -58,5 +58,14 @@ while [ 1 ] ; do
send_all_pipes "restart"
sleep 5s
;;
+ 107)
+ echo "git pull..."
+ pull_all
+ echo "Build all servers"
+ build_all
+ echo "Restarting all servers..."
+ send_all_pipes "restart"
+ sleep 5s
+ ;;
esac
done