From 28a4eb4e8b34a20ae83ccbf7fea52f03757b23be Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 16 Mar 2019 13:51:16 -0300 Subject: Fix the wrapper so @serverexit 104 works, and remove @serverexit 105+ --- herculeswrapper/include.sh | 18 +------------- herculeswrapper/map.sh | 61 +++------------------------------------------- 2 files changed, 5 insertions(+), 74 deletions(-) (limited to 'herculeswrapper') diff --git a/herculeswrapper/include.sh b/herculeswrapper/include.sh index 1c8990c..24090cd 100644 --- a/herculeswrapper/include.sh +++ b/herculeswrapper/include.sh @@ -53,25 +53,9 @@ function hard_reset { } function pull_all { - hard_reset "data" - #cd ../client-data - #hard_reset "client" - #cd ../music - #hard_reset "music" - cd ../server-code - hard_reset "code" - cd src/evol - hard_reset "plugin" - cd ../../../tools - hard_reset "tools" - cd .. - ./pull.sh - cd server-data - git_merge cd ../ - ./status.sh + ./pull.sh force cd server-data - make maps } function build_all { diff --git a/herculeswrapper/map.sh b/herculeswrapper/map.sh index 055acd7..ffd7e76 100755 --- a/herculeswrapper/map.sh +++ b/herculeswrapper/map.sh @@ -28,12 +28,12 @@ while [ 1 ] ; do 101) echo "Restarting all servers..." send_all_pipes "restart" - sleep 5s + sleep 7s ;; 102) - echo "Restarting chat and map servers..." + echo "Restarting char and map servers..." send_char_pipe "restart" - sleep 3s + sleep 5s ;; 103) echo "Restarting map server..." @@ -43,60 +43,7 @@ while [ 1 ] ; do pull_all echo "Restarting all servers..." send_all_pipes "restart" - sleep 5s - ;; - 105) - echo "Build all servers" - sleep 5s - build_all - echo "Restarting all servers..." - send_all_pipes "restart" - sleep 5s - ;; - 106) - echo "Rebuild all servers" - sleep 5s - build_clean - build_all - echo "Restarting all servers..." - send_all_pipes "restart" - sleep 5s - ;; - 107) - echo "git pull..." - pull_all - echo "Build all servers" - build_all - echo "Restarting all servers..." - send_all_pipes "restart" - sleep 5s - ;; - 108) - echo "git pull..." - pull_all - echo "Rebuild all servers" - build_clean - build_all - echo "Restarting all servers..." - send_all_pipes "restart" - sleep 5s - ;; - 109) - echo "Build plugin" - sleep 5s - build_plugin - echo "Restarting all servers..." - 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 + sleep 7s ;; esac done -- cgit v1.2.3-70-g09d2