summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-03-21 23:04:50 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-03-21 23:04:50 +0000
commit9e35f7e4087cfa6017cb65ec6a7036f394f5eb22 (patch)
treee211e80d29f6e21c231ec4a4407de7e710f36837 /scripts
parent2c57f8e0b0ac637eac689a89bdf5498227b78a93 (diff)
fix: set credentials readable by www-data (group 640) in sync-credentials
Diffstat (limited to 'scripts')
-rw-r--r--scripts/sync-credentials3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/sync-credentials b/scripts/sync-credentials
index 842ef34..22e3f75 100644
--- a/scripts/sync-credentials
+++ b/scripts/sync-credentials
@@ -22,7 +22,8 @@ DEST_GEMINI_ACCOUNTS="/workspace/claudomator/credentials/gemini/google_accounts.
if [[ -f "$SOURCE_CLAUDE" ]]; then
mkdir -p "$(dirname "$DEST_CLAUDE")"
cp "$SOURCE_CLAUDE" "$DEST_CLAUDE"
- chmod 600 "$DEST_CLAUDE"
+ chown root:www-data "$DEST_CLAUDE" 2>/dev/null || true
+ chmod 640 "$DEST_CLAUDE"
echo "Synced Claude credentials."
fi