chore: tar.xz archives now set UID and GID to 0

The reason for this is to avoid the need for `--no-same-owner` when
extracting the archive as a super user (e.g. `sudo`). Without this
change, the UID and GID of `recyclarr` after it is extracted is whatever
user was used in github actions to create the archive, which isn't
really useful.

This change does not affect extractions as normal users; by default, the
UID/GID inside the archive is not used in those cases.
json-serializing-nullable-fields-issue
Robert Dailey 9 months ago
parent c44682ea51
commit c3b7e973b2

@ -29,7 +29,7 @@ foreach ($dir in $archiveTargets) {
else {
"> Tarballing: $dir"
Push-Location "$PublishDir/$dir"
tar cJvf "$archiveName.tar.xz" *
tar -cJv --owner=0 --group=0 -f "$archiveName.tar.xz" *
Move-Item "$archiveName.tar.xz" $OutputDir
Pop-Location
}

Loading…
Cancel
Save