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