From 59bc6ebd4f405cdfea43b96c84fa7f7ea56197c4 Mon Sep 17 00:00:00 2001 From: VPN SaaS Dev Date: Mon, 18 May 2026 18:23:18 +0900 Subject: [PATCH] fix rsync deploy progress reports --- scripts/rsync_deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/rsync_deploy.sh b/scripts/rsync_deploy.sh index 2155ebd..846dc8f 100755 --- a/scripts/rsync_deploy.sh +++ b/scripts/rsync_deploy.sh @@ -28,7 +28,7 @@ EXCLUDES=( send_remote_report() { local text="$1" - ssh "$REMOTE" "cd '$REMOTE_DIR' && CARPASS_REPORT_TEXT=\$(cat) $COMPOSE exec -T -e CARPASS_REPORT_TEXT api python scripts/send_telegram_report.py" <<<"$text" || true + ssh "$REMOTE" "cd '$REMOTE_DIR' && export CARPASS_REPORT_TEXT=\$(cat); if $COMPOSE exec -T api test -f scripts/send_telegram_report.py >/dev/null 2>&1; then $COMPOSE exec -T -e CARPASS_REPORT_TEXT api python scripts/send_telegram_report.py; else $COMPOSE run --rm --no-deps -e CARPASS_REPORT_TEXT api python scripts/send_telegram_report.py; fi" <<<"$text" || true } fail_report() {