You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
469 B
21 lines
469 B
#!/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
|
|
|
|
|
|
|
|
|
|
|