diff options
-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 |