summaryrefslogtreecommitdiff
path: root/herculeswrapper
diff options
context:
space:
mode:
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