summaryrefslogtreecommitdiff
path: root/herculeswrapper
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-10 03:35:53 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-10 03:35:53 +0300
commitf57eb89da57a9dfaad8085ee0a07ad2618dcac50 (patch)
tree0927342d170bf895d1a27eca34236b4bbe803254 /herculeswrapper
parentce5830cc30270be547bc53894bc3ce5a590c54cc (diff)
downloadevol-tools-f57eb89da57a9dfaad8085ee0a07ad2618dcac50.tar.gz
evol-tools-f57eb89da57a9dfaad8085ee0a07ad2618dcac50.tar.bz2
evol-tools-f57eb89da57a9dfaad8085ee0a07ad2618dcac50.tar.xz
evol-tools-f57eb89da57a9dfaad8085ee0a07ad2618dcac50.zip
herculeswrapper: add support for git pull and rebuild code.
Diffstat (limited to 'herculeswrapper')
-rwxr-xr-xherculeswrapper/map.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/herculeswrapper/map.sh b/herculeswrapper/map.sh
index 7cbad34..b191326 100755
--- a/herculeswrapper/map.sh
+++ b/herculeswrapper/map.sh
@@ -67,5 +67,15 @@ while [ 1 ] ; do
send_all_pipes "restart"
sleep 5s
;;
+ 108)
+ echo "git pull..."
+ pull_all
+ echo "Rebuild all servers"
+ build_clean
+ build_all
+ echo "Restarting all servers..."
+ send_all_pipes "restart"
+ sleep 5s
+ ;;
esac
done