From f1ebd567c2eae2ca51347d1c6284af985048d9b1 Mon Sep 17 00:00:00 2001 From: Vishal Timbadiya <69849041+vtimbadiya@users.noreply.github.com> Date: Tue, 10 Feb 2026 22:54:36 +0530 Subject: [PATCH] Fix ownership of tar file after creation since bash script run via sudo it create file with root:root scp does not work with copy --- support-bundle/support-bundle-edge.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support-bundle/support-bundle-edge.sh b/support-bundle/support-bundle-edge.sh index be33eef..272c164 100755 --- a/support-bundle/support-bundle-edge.sh +++ b/support-bundle/support-bundle-edge.sh @@ -118,7 +118,7 @@ function archive() { tar -czf "${TMPDIR_BASE}/${LOGNAME}.tar.gz" -C "$TMPDIR_BASE" "$LOGNAME" || { techo "Failed to create tar file" } - + sudo chown "$USER:$GROUP" ${TMPDIR_BASE}/${LOGNAME}.tar.gz techo "Logs are archived in ${TMPDIR_BASE}/${LOGNAME}.tar.gz" }