#!/bin/bash CENTER_CODE=$1 BASE_PATH=/data/mmogrun/${CENTER_CODE} if [ -d "${BASE_PATH}" ]; then cd ${BASE_PATH} PID=$(cat maintainer.pid) rm -rf mgame_server_release*.tgz MOUNT_PATH=/data/mmogrun/ docker exec "${PID}" sh -c "cd ${MOUNT_PATH}publish/ctrl_sh/ && ./stop_all.sh" docker exec "${PID}" sh -c "cd /3rd/ && ./clear_log.sh" docker exec "${PID}" sh -c "cd ${MOUNT_PATH}publish/ctrl_sh/ && ./start_all.sh" echo "update done" exit 0 fi