summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-10 16:39:28 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-10 16:39:28 +0300
commit27e7e90a5045e8c7e1144d9a0cc3d2de47442116 (patch)
tree9dd169dbe3a2399a5471f376688e731d8d4bc3d0
parent0aff35a3d441ecc725a3ad8f475731956dfa2bda (diff)
downloadevol-tools-27e7e90a5045e8c7e1144d9a0cc3d2de47442116.tar.gz
evol-tools-27e7e90a5045e8c7e1144d9a0cc3d2de47442116.tar.bz2
evol-tools-27e7e90a5045e8c7e1144d9a0cc3d2de47442116.tar.xz
evol-tools-27e7e90a5045e8c7e1144d9a0cc3d2de47442116.zip
herculeswrapper: add support for git pull and build plugin code
-rwxr-xr-xherculeswrapper/map.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/herculeswrapper/map.sh b/herculeswrapper/map.sh
index 78fb453..1fcd1e3 100755
--- a/herculeswrapper/map.sh
+++ b/herculeswrapper/map.sh
@@ -85,5 +85,14 @@ while [ 1 ] ; do
send_all_pipes "restart"
sleep 5s
;;
+ 110)
+ echo "git pull..."
+ pull_all
+ echo "Build plugin"
+ build_plugin
+ echo "Restarting all servers..."
+ send_all_pipes "restart"
+ sleep 5s
+ ;;
esac
done