From f57eb89da57a9dfaad8085ee0a07ad2618dcac50 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Aug 2016 03:35:53 +0300 Subject: herculeswrapper: add support for git pull and rebuild code. --- herculeswrapper/map.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'herculeswrapper') 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 -- cgit v1.2.3-70-g09d2