summaryrefslogtreecommitdiff
path: root/herculeswrapper
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-10 03:16:08 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-10 03:16:08 +0300
commita56e62f2a9f5765af8294f77658b2ec9d7effc1e (patch)
treea35c90d25c7db136da1eb7a46c63c51c4f68a4ab /herculeswrapper
parent6e8f1ad4461537d0c958b06ffac37cbb138a45fa (diff)
downloadevol-tools-a56e62f2a9f5765af8294f77658b2ec9d7effc1e.tar.gz
evol-tools-a56e62f2a9f5765af8294f77658b2ec9d7effc1e.tar.bz2
evol-tools-a56e62f2a9f5765af8294f77658b2ec9d7effc1e.tar.xz
evol-tools-a56e62f2a9f5765af8294f77658b2ec9d7effc1e.zip
herculeswrapper: add support for rebuild code.
Diffstat (limited to 'herculeswrapper')
-rw-r--r--herculeswrapper/include.sh6
-rwxr-xr-xherculeswrapper/map.sh9
2 files changed, 15 insertions, 0 deletions
diff --git a/herculeswrapper/include.sh b/herculeswrapper/include.sh
index f9f4704..6e0257c 100644
--- a/herculeswrapper/include.sh
+++ b/herculeswrapper/include.sh
@@ -90,3 +90,9 @@ function build_all {
cat err.txt
cd ../server-data
}
+
+function build_clean {
+ cd ../tools/localserver
+ ./clean.sh
+ cd ../../server-data
+}
diff --git a/herculeswrapper/map.sh b/herculeswrapper/map.sh
index f55f2d9..9efa0a4 100755
--- a/herculeswrapper/map.sh
+++ b/herculeswrapper/map.sh
@@ -49,5 +49,14 @@ while [ 1 ] ; do
send_all_pipes "restart"
sleep 5s
;;
+ 106)
+ echo "Rebuild all servers"
+ sleep 5s
+ build_clean
+ build_all
+ echo "Restarting all servers..."
+ send_all_pipes "restart"
+ sleep 5s
+ ;;
esac
done