diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-10 02:59:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-10 02:59:44 +0300 |
commit | 6e8f1ad4461537d0c958b06ffac37cbb138a45fa (patch) | |
tree | a3009d80ec390b03c4704389b3efdd1d18d8c9b4 | |
parent | 0b974c74a13a9e493ed4f3c2da3569ddaaa45c74 (diff) | |
download | evol-tools-6e8f1ad4461537d0c958b06ffac37cbb138a45fa.tar.gz evol-tools-6e8f1ad4461537d0c958b06ffac37cbb138a45fa.tar.bz2 evol-tools-6e8f1ad4461537d0c958b06ffac37cbb138a45fa.tar.xz evol-tools-6e8f1ad4461537d0c958b06ffac37cbb138a45fa.zip |
herculeswrapper: add support for build code.
-rw-r--r-- | herculeswrapper/include.sh | 7 | ||||
-rwxr-xr-x | herculeswrapper/map.sh | 8 |
2 files changed, 15 insertions, 0 deletions
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 |