#!/bin/bash CENTER_CODE=$1 cd /data/mmogrun/${CENTER_CODE} PID=$(cat maintainer.pid) WEB_PATH=/data/wwwroot/oss/ docker cp /data/docker/web.zip "${PID}":${WEB_PATH} docker exec "${PID}" sh -c "cd ${WEB_PATH} && unzip -q web.zip" echo "update done"