From 48eec199bb3fe4f18434fdf7c635eff1c55eea19 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 22 Jun 2017 07:27:38 +0100 Subject: [PATCH] Set uid/gid to 0 in tarball Give the files in thar tarball user and group root, so that when you untar it you don't get a surprise if you happen to have a user named the same as the build user. --- scripts/package.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/package.sh b/scripts/package.sh index 23d0925b05..a4cd56cb71 100755 --- a/scripts/package.sh +++ b/scripts/package.sh @@ -30,7 +30,7 @@ else echo ${version} > riot-$version/version fi -tar chvzf dist/riot-$version.tar.gz riot-$version +tar chvz --owner=0 --group=0 -f dist/riot-$version.tar.gz riot-$version rm -r riot-$version echo