summaryrefslogtreecommitdiff
path: root/herculeswrapper
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-10 16:24:24 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-10 16:24:24 +0300
commit0aff35a3d441ecc725a3ad8f475731956dfa2bda (patch)
treeb60e2764195fa171aea583ded86776736206dd6a /herculeswrapper
parentf57eb89da57a9dfaad8085ee0a07ad2618dcac50 (diff)
downloadtools-0aff35a3d441ecc725a3ad8f475731956dfa2bda.tar.gz
tools-0aff35a3d441ecc725a3ad8f475731956dfa2bda.tar.bz2
tools-0aff35a3d441ecc725a3ad8f475731956dfa2bda.tar.xz
tools-0aff35a3d441ecc725a3ad8f475731956dfa2bda.zip
herculeswrapper: add support for build plugin 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 6e0257c..cc6b1f4 100644
--- a/herculeswrapper/include.sh
+++ b/herculeswrapper/include.sh
@@ -96,3 +96,10 @@ function build_clean {
./clean.sh
cd ../../server-data
}
+
+function build_plugin {
+ cd ../server-plugin
+ ./build.sh 2>err.txt
+ cat err.txt
+ cd ../server-data
+}
diff --git a/herculeswrapper/map.sh b/herculeswrapper/map.sh
index b191326..78fb453 100755
--- a/herculeswrapper/map.sh
+++ b/herculeswrapper/map.sh
@@ -77,5 +77,13 @@ while [ 1 ] ; do
send_all_pipes "restart"
sleep 5s
;;
+ 109)
+ echo "Build plugin"
+ sleep 5s
+ build_plugin
+ echo "Restarting all servers..."
+ send_all_pipes "restart"
+ sleep 5s
+ ;;
esac
done