From 89f124cd2781ae622a0a4ead8be4fb6bc13df020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9?= Date: Fri, 29 May 2026 05:13:14 +0300 Subject: [PATCH] =?UTF-8?q?fix(artisan-run):=20pass=20command=20via=20base?= =?UTF-8?q?64=20to=20avoid=20SSH=20shell-quote=20space=20loss=20(first=20d?= =?UTF-8?q?ry-run=20showed=20'supplier:rekey-orphansdry-run'=20=E2=80=94?= =?UTF-8?q?=20space=20eaten=20by=20printf=20%q=20+=20outer=20double-quote?= =?UTF-8?q?=20interaction;=20base64=20encode=20locally=20+=20decode=20on?= =?UTF-8?q?=20prod=20side=20preserves=20spaces=20and=20special=20chars=20c?= =?UTF-8?q?leanly)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/artisan-run.yml | 4 +++- docs/observer/STATUS.md | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/artisan-run.yml b/.github/workflows/artisan-run.yml index 4c787c1a..ab0f9b6c 100644 --- a/.github/workflows/artisan-run.yml +++ b/.github/workflows/artisan-run.yml @@ -77,9 +77,11 @@ jobs: - name: Run artisan on prod run: | set -o pipefail + CMD_B64=$(printf '%s' "$CMD" | base64 -w0) ssh -i ~/.ssh/liderra_deploy ${{ env.LIDERRA_USER }}@${{ env.LIDERRA_HOST }} \ - "CMD=$(printf '%q' \"$CMD\") bash -s" <<'REMOTE' | tee /tmp/artisan-output.log + "CMD_B64='$CMD_B64' bash -s" <<'REMOTE' | tee /tmp/artisan-output.log set +e + CMD=$(echo "$CMD_B64" | base64 -d) cd /var/www/liderra/app echo "=== Running: php artisan $CMD on $(hostname) at $(date -u) ===" sudo -u www-data php artisan $CMD 2>&1 diff --git a/docs/observer/STATUS.md b/docs/observer/STATUS.md index d58b87e6..ec5b9802 100644 --- a/docs/observer/STATUS.md +++ b/docs/observer/STATUS.md @@ -1,6 +1,6 @@ # Brain Status (auto-generated) -Last updated: 2026-05-29T02:06:45.148Z +Last updated: 2026-05-29T02:07:51.664Z | Контролёр | Состояние | Детали | |---|---|---|