From b84ecbbb84b144dce2521c0e8f7bcbeb82346ec7 Mon Sep 17 00:00:00 2001 From: zaragoza444 Date: Mon, 29 Jun 2026 07:10:52 -0700 Subject: [PATCH] fix(deploy): LXC portal sync tolerates unset optional .env vars Co-authored-by: Cursor --- scripts/deployment/deploy-omnl-banking-portal-pct.sh | 2 ++ scripts/deployment/sync-ali-omnl-banking-portal-lxcs.sh | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/deployment/deploy-omnl-banking-portal-pct.sh b/scripts/deployment/deploy-omnl-banking-portal-pct.sh index c27f697..405b439 100755 --- a/scripts/deployment/deploy-omnl-banking-portal-pct.sh +++ b/scripts/deployment/deploy-omnl-banking-portal-pct.sh @@ -60,8 +60,10 @@ tar -czf "$STAGE" \ if [[ -f "$REPO_DIR/.env" ]]; then set -a + set +u # shellcheck disable=SC1090 source "$REPO_DIR/.env" + set -u set +a if bash "$SCRIPT_DIR/generate-portal-nginx-auth-snippet.sh" "$CTID" "$REPO_DIR/deploy/nginx/omnl-portal-auth-${CTID}.conf.inc" 2>/dev/null; then cp "$REPO_DIR/deploy/nginx/omnl-portal-auth-${CTID}.conf.inc" "$REPO_DIR/deploy/nginx/omnl-portal-auth-current.conf.inc" diff --git a/scripts/deployment/sync-ali-omnl-banking-portal-lxcs.sh b/scripts/deployment/sync-ali-omnl-banking-portal-lxcs.sh index dd5dae0..22f3d00 100755 --- a/scripts/deployment/sync-ali-omnl-banking-portal-lxcs.sh +++ b/scripts/deployment/sync-ali-omnl-banking-portal-lxcs.sh @@ -47,9 +47,8 @@ log "Config: $LXC_CONFIG" log "PVE: ${OMNL_PVE_SSH_TARGET} (sudo prefix: ${OMNL_PVE_SSH_PREFIX[*]:-none})" if $APPLY; then - log "Building stack once on dev..." - cd "$REPO_DIR" - bash scripts/deployment/deploy-omnl-bank-production.sh + log "Using stack built in step 1 — skip duplicate full deploy" + export OMNL_SKIP_BUILD=1 fi synced=0