Skip to content

Commit 89a4fb7

Browse files
authored
deploy_nixos/unpack-keys.sh: chown the keys to root:keys (#32)
They were `root:root` before, so they couldn’t be read by the `keys` group as intended.
1 parent dbba649 commit 89a4fb7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

deploy_nixos/unpack-keys.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ for keyname in $(jq -S -r 'keys[]' "$keys_file"); do
4040
echo "unpacking: $keyname"
4141
jq -r ".\"$keyname\"" < "$keys_file" > "$keys_dir/$keyname"
4242
chmod 0640 "$keys_dir/$keyname"
43+
chown root:keys "$keys_dir/$keyname"
4344
done
4445

4546
echo "unpacking done"

0 commit comments

Comments
 (0)