summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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