summaryrefslogtreecommitdiff
path: root/herculeswrapper
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-10 02:59:44 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-10 02:59:44 +0300
commit6e8f1ad4461537d0c958b06ffac37cbb138a45fa (patch)
treea3009d80ec390b03c4704389b3efdd1d18d8c9b4 /herculeswrapper
parent0b974c74a13a9e493ed4f3c2da3569ddaaa45c74 (diff)
downloadtools-6e8f1ad4461537d0c958b06ffac37cbb138a45fa.tar.gz
tools-6e8f1ad4461537d0c958b06ffac37cbb138a45fa.tar.bz2
tools-6e8f1ad4461537d0c958b06ffac37cbb138a45fa.tar.xz
tools-6e8f1ad4461537d0c958b06ffac37cbb138a45fa.zip
herculeswrapper: add support for build code.
Diffstat (limited to 'herculeswrapper')
-rw-r--r--herculeswrapper/include.sh7
-rwxr-xr-xherculeswrapper/map.sh8
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