From 0aff35a3d441ecc725a3ad8f475731956dfa2bda Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 10 Aug 2016 16:24:24 +0300 Subject: herculeswrapper: add support for build plugin code. --- herculeswrapper/include.sh | 7 +++++++ herculeswrapper/map.sh | 8 ++++++++ 2 files changed, 15 insertions(+) (limited to 'herculeswrapper') 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 -- cgit v1.2.3-70-g09d2