diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-10 16:24:24 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-10 16:24:24 +0300 |
commit | 0aff35a3d441ecc725a3ad8f475731956dfa2bda (patch) | |
tree | b60e2764195fa171aea583ded86776736206dd6a | |
parent | f57eb89da57a9dfaad8085ee0a07ad2618dcac50 (diff) | |
download | evol-tools-0aff35a3d441ecc725a3ad8f475731956dfa2bda.tar.gz evol-tools-0aff35a3d441ecc725a3ad8f475731956dfa2bda.tar.bz2 evol-tools-0aff35a3d441ecc725a3ad8f475731956dfa2bda.tar.xz evol-tools-0aff35a3d441ecc725a3ad8f475731956dfa2bda.zip |
herculeswrapper: add support for build plugin code.
-rw-r--r-- | herculeswrapper/include.sh | 7 | ||||
-rwxr-xr-x | herculeswrapper/map.sh | 8 |
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 |