From 5bc2b4562ebf9e214683a2e3d17290145ba2da31 Mon Sep 17 00:00:00 2001 From: root2 Date: Sat, 30 May 2026 03:42:01 +0000 Subject: [PATCH] =?UTF-8?q?onboard:=20secrets-decrypt=20=EC=9E=90=EB=8F=99?= =?UTF-8?q?=20=ED=98=B8=EC=B6=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- onboard-linux-node.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/onboard-linux-node.sh b/onboard-linux-node.sh index 8a34e2b..f3d433e 100755 --- a/onboard-linux-node.sh +++ b/onboard-linux-node.sh @@ -129,6 +129,12 @@ for REPO in "${REPOS[@]}"; do fi git clone "gitea:${ORG}/${REPO}.git" "$TARGET" || { echo " ✗ $REPO clone 실패"; continue; } echo " ✔ $REPO clone 완료 → $TARGET" + # secrets 자동 복호화 (age key 가 있으면) + if [ -x "$TARGET/scripts/secrets-decrypt.sh" ] && [ -f "$HOME/.config/washtime/age.key" ]; then + "$TARGET/scripts/secrets-decrypt.sh" 2>&1 | sed 's/^/ /' + elif [ -x "$TARGET/scripts/secrets-decrypt.sh" ]; then + echo " ℹ secrets-decrypt.sh 발견됨 — ~/.config/washtime/age.key 받은 후 ./scripts/secrets-decrypt.sh 실행하세요" + fi fi done