fix(deploy): normalize CRLF in portal start script before LXC bundle
Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m16s
CI/CD Pipeline / Security Scanning (push) Successful in 2m25s
CI/CD Pipeline / Lint and Format (push) Failing after 46s
CI/CD Pipeline / Terraform Validation (push) Failing after 27s
CI/CD Pipeline / Kubernetes Validation (push) Successful in 25s
Deploy ChainID 138 / Deploy ChainID 138 (push) Failing after 39s
Validation / validate-genesis (push) Successful in 30s
Validation / validate-terraform (push) Failing after 27s
Validation / validate-kubernetes (push) Failing after 11s
Validation / validate-smart-contracts (push) Failing after 12s
Validation / validate-security (push) Failing after 1m17s
Validation / validate-documentation (push) Failing after 20s
Verify Deployment / Verify Deployment (push) Failing after 59s
Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m16s
CI/CD Pipeline / Security Scanning (push) Successful in 2m25s
CI/CD Pipeline / Lint and Format (push) Failing after 46s
CI/CD Pipeline / Terraform Validation (push) Failing after 27s
CI/CD Pipeline / Kubernetes Validation (push) Successful in 25s
Deploy ChainID 138 / Deploy ChainID 138 (push) Failing after 39s
Validation / validate-genesis (push) Successful in 30s
Validation / validate-terraform (push) Failing after 27s
Validation / validate-kubernetes (push) Failing after 11s
Validation / validate-smart-contracts (push) Failing after 12s
Validation / validate-security (push) Failing after 1m17s
Validation / validate-documentation (push) Failing after 20s
Verify Deployment / Verify Deployment (push) Failing after 59s
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -39,6 +39,11 @@ else
|
||||
fi
|
||||
|
||||
log "Staging bundle for CT ${CTID}..."
|
||||
for sh in scripts/deployment/start-omnl-banking-portal.sh; do
|
||||
if [[ -f "$REPO_DIR/$sh" ]] && grep -q $'\r' "$REPO_DIR/$sh" 2>/dev/null; then
|
||||
tr -d '\r' <"$REPO_DIR/$sh" >"$REPO_DIR/${sh}.lf" && mv "$REPO_DIR/${sh}.lf" "$REPO_DIR/$sh"
|
||||
fi
|
||||
done
|
||||
tar -czf "$STAGE" \
|
||||
-C "$REPO_DIR" \
|
||||
config \
|
||||
@@ -78,7 +83,7 @@ log "Install into CT $CTID at $PORTAL_ROOT..."
|
||||
pve_exec "pct push ${CTID} /tmp/omnl-portal.tar.gz /tmp/omnl-portal.tar.gz"
|
||||
pct_exec "mkdir -p ${PORTAL_ROOT} ${PROJECT_SRC}"
|
||||
pct_exec "tar -xzf /tmp/omnl-portal.tar.gz -C ${PORTAL_ROOT}"
|
||||
pct_exec "find ${PORTAL_ROOT}/scripts/deployment -name '*.sh' -exec sed -i 's/\\r$//' {} +"
|
||||
pct_exec "sed -i 's/\\r//g' ${PORTAL_ROOT}/scripts/deployment/start-omnl-banking-portal.sh"
|
||||
pct_exec "ln -sfn ${PORTAL_ROOT} ${PROJECT_SRC}/omnl-live || true"
|
||||
pct_exec "chmod +x ${PORTAL_ROOT}/scripts/deployment/start-omnl-banking-portal.sh"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user