The deployed folder keeps 755: mktemp's 700 was copied onto it
Build / Desktop, server and tools (push) Successful in 29s

rsync -a carried the staging folder's mode to /var/www/meweb.arasaka.software,
and the meweb user could no longer enter it (status=200/CHDIR).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012CzABvBkbcFqoHdmi8b9WB
This commit is contained in:
thepraandClaude Opus 5.5 committed 2026-10-15 01:32:32 +02:00
1 parent 0d99c552eb
commit 16a1cecaae
1 file changed
+1
+1
View File
@@ -6,6 +6,7 @@ backups=/var/backups/meweb.arasaka.software
health=http://127.0.0.1:5480/api/info health=http://127.0.0.1:5480/api/info
stamp=$(date -u +%Y%m%d%H%M%S) stamp=$(date -u +%Y%m%d%H%M%S)
stage=$(mktemp -d) stage=$(mktemp -d)
chmod 755 "$stage"
trap 'rm -rf "$stage"' EXIT trap 'rm -rf "$stage"' EXIT
tar -xzf "$archive" -C "$stage" tar -xzf "$archive" -C "$stage"