From f467c6c7da3d3a91c4eef75cbcf115888a3e344e Mon Sep 17 00:00:00 2001 From: Craig Williams Date: Wed, 21 Oct 2026 16:07:21 +0100 Subject: [PATCH] The release tarball's files are now owned by root, not the user who built it --- scripts/build.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/build.sh b/scripts/build.sh index c534fd8..339d408 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -70,7 +70,9 @@ if [[ $DO_RELEASE -eq 1 ]]; then install -DT -m 644 deploy/job-search.service $RELEASE_DIR/job-search.service install -DT -m 644 deploy/job-search.logrotate $RELEASE_DIR/job-search.logrotate ARCH=`dpkg --print-architecture` + # Owned by root (0:0), not the user who built it, with no names tar -czf $RELEASE_DIR/job-search-$VERSION-$ARCH.tar.gz \ + --owner=0 --group=0 --numeric-owner \ --transform "s,^$RELEASE_DIR/,job-search-$VERSION-$ARCH/," \ $RELEASE_DIR/job-search $RELEASE_DIR/job-search.service \ $RELEASE_DIR/job-search.logrotate