diff --git a/scripts/deploy-nas.sh b/scripts/deploy-nas.sh index f5d067b..af70c9f 100644 --- a/scripts/deploy-nas.sh +++ b/scripts/deploy-nas.sh @@ -32,7 +32,7 @@ cd "$SRC" # backend, travel-proxy, deployer, nginx, scripts, docker-compose.yml, .env 등 RSYNC_OPTS="-rl --delete --no-owner --no-group --exclude .git --exclude __pycache__ --exclude *.pyc --exclude data/" -for dir in backend travel-proxy deployer stock-lab music-lab blog-lab realestate-lab nginx scripts; do +for dir in backend travel-proxy deployer stock-lab music-lab blog-lab realestate-lab agent-office nginx scripts; do rsync $RSYNC_OPTS "$SRC/$dir/" "$DST/$dir/" || { rc=$? if [ $rc -ne 23 ]; then @@ -58,7 +58,7 @@ DEPLOY_GROUP="users" DEPLOY_MODE="755" echo "Setting ownership ${DEPLOY_USER}:${DEPLOY_GROUP} and mode ${DEPLOY_MODE}..." -for dir in backend travel-proxy deployer stock-lab music-lab blog-lab realestate-lab nginx scripts; do +for dir in backend travel-proxy deployer stock-lab music-lab blog-lab realestate-lab agent-office nginx scripts; do chown -R "${DEPLOY_USER}:${DEPLOY_GROUP}" "$DST/$dir/" 2>/dev/null || true chmod -R "$DEPLOY_MODE" "$DST/$dir/" 2>/dev/null || true done