From 6e8f1ad4461537d0c958b06ffac37cbb138a45fa Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Aug 2016 02:59:44 +0300 Subject: herculeswrapper: add support for build code. --- herculeswrapper/include.sh | 7 +++++++ herculeswrapper/map.sh | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/herculeswrapper/include.sh b/herculeswrapper/include.sh index 76f49aa..f9f4704 100644 --- a/herculeswrapper/include.sh +++ b/herculeswrapper/include.sh @@ -83,3 +83,10 @@ function pull_all { ./status.sh cd server-data } + +function build_all { + cd ../server-code + ./build.sh 2>err.txt + cat err.txt + cd ../server-data +} diff --git a/herculeswrapper/map.sh b/herculeswrapper/map.sh index bbbf65a..f55f2d9 100755 --- a/herculeswrapper/map.sh +++ b/herculeswrapper/map.sh @@ -41,5 +41,13 @@ while [ 1 ] ; do send_all_pipes "restart" sleep 5s ;; + 105) + echo "Build all servers" + sleep 5s + build_all + echo "Restarting all servers..." + send_all_pipes "restart" + sleep 5s + ;; esac done -- cgit v1.2.3-70-g09d2