From 792d48553c73f88e34be45f6474cea5b8ea7667a Mon Sep 17 00:00:00 2001 From: neil Date: Sun, 1 Nov 2026 23:33:35 -0800 Subject: [PATCH] deploy.sh: extract as root, not the local uid Co-Authored-By: Claude Opus 5.5 --- deploy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 560854b..e6ac9db 100755 --- a/deploy.sh +++ b/deploy.sh @@ -9,7 +9,7 @@ HOST=${HOST:?set HOST=root@} cd "$(dirname "$0")" node --test tests/ >/dev/null || { echo "tests failed; not deploying" >&2; exit 1; } tar -czf - --exclude=__pycache__ --exclude=data app compose.yml | - ssh "$HOST" 'set -e; mkdir -p /opt/tools && rm -rf /opt/tools/app && tar -xzf - -C /opt/tools' + ssh "$HOST" 'set -e; mkdir -p /opt/tools && rm -rf /opt/tools/app && tar --no-same-owner -xzf - -C /opt/tools' ssh "$HOST" bash -s <<'REMOTE' set -euo pipefail cd /opt/tools