From b1f899512a18bf0fa8499adf532a56bf87663a43 Mon Sep 17 00:00:00 2001 From: Alex Vandiver Date: Wed, 7 Feb 2024 12:28:01 -0500 Subject: [PATCH] pack-local-script: Match mode of file outside of packing. --- puppet/kandra/files/install-ssh-authorized-keys | 0 puppet/kandra/files/install-ssh-keys | 0 tools/setup/pack-local-script | 4 +++- 3 files changed, 3 insertions(+), 1 deletion(-) mode change 100644 => 100755 puppet/kandra/files/install-ssh-authorized-keys mode change 100644 => 100755 puppet/kandra/files/install-ssh-keys diff --git a/puppet/kandra/files/install-ssh-authorized-keys b/puppet/kandra/files/install-ssh-authorized-keys old mode 100644 new mode 100755 diff --git a/puppet/kandra/files/install-ssh-keys b/puppet/kandra/files/install-ssh-keys old mode 100644 new mode 100755 diff --git a/tools/setup/pack-local-script b/tools/setup/pack-local-script index 0cbe0e652b..e8749d4870 100755 --- a/tools/setup/pack-local-script +++ b/tools/setup/pack-local-script @@ -13,10 +13,12 @@ set -eu var="$1" file="$2" +mode="$(stat -c "%a" "$file")" + encoded="$(gzip --stdout "$file" | base64)" cat < "\$$var" $encoded encoded-shell-script