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.
 
 
 
 
 
 

11 lines
253 B

#!/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"