From 5abae5b921fe67a24d286048c30cddd14be09127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bob=20Dr=C3=B6ge?= Date: Thu, 2 Feb 2023 13:08:23 +0100 Subject: [PATCH 1/2] use --no-same-owner for tar command --- scripts/ingest-tarball.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ingest-tarball.sh b/scripts/ingest-tarball.sh index 8f66c0cb..634d671d 100755 --- a/scripts/ingest-tarball.sh +++ b/scripts/ingest-tarball.sh @@ -182,7 +182,7 @@ function ingest_compat_tarball() { echo_yellow "Removing the existing layer, and adding the new one from the tarball..." cvmfs_server transaction "${repo}" rm -rf "/cvmfs/${repo}/${basedir}/${version}/compat/${os}/${arch}/" - tar -C "/cvmfs/${repo}/${basedir}/" -xzf "${tar_file}" + tar --no-same-owner -C "/cvmfs/${repo}/${basedir}/" -xzf "${tar_file}" cvmfs_server publish -m "update compat layer for ${version}, ${os}, ${arch}" "${repo}" ec=$? if [ $ec -eq 0 ] From 631c03e3eba650d6cb2a42444327a152b6e0c1f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bob=20Dr=C3=B6ge?= Date: Thu, 2 Feb 2023 13:33:43 +0100 Subject: [PATCH 2/2] also use --no-same-permissions for tar command --- scripts/ingest-tarball.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ingest-tarball.sh b/scripts/ingest-tarball.sh index 634d671d..bb2d1143 100755 --- a/scripts/ingest-tarball.sh +++ b/scripts/ingest-tarball.sh @@ -182,7 +182,7 @@ function ingest_compat_tarball() { echo_yellow "Removing the existing layer, and adding the new one from the tarball..." cvmfs_server transaction "${repo}" rm -rf "/cvmfs/${repo}/${basedir}/${version}/compat/${os}/${arch}/" - tar --no-same-owner -C "/cvmfs/${repo}/${basedir}/" -xzf "${tar_file}" + tar --no-same-owner --no-same-permissions -C "/cvmfs/${repo}/${basedir}/" -xzf "${tar_file}" cvmfs_server publish -m "update compat layer for ${version}, ${os}, ${arch}" "${repo}" ec=$? if [ $ec -eq 0 ]