Skip to content

Commit

Permalink
file_groupownership_ssh_private_key: make sure that the group ssh_key…
Browse files Browse the repository at this point in the history
…s exists before using it in test scenario

it migt not exist in FEdora container which is used as test environment
  • Loading branch information
vojtapolasek committed Jun 22, 2023
1 parent d92169b commit 181ccc5
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash
# platform = multi_platform_ol,multi_platform_rhel

if ! grep -q ssh_keys /etc/group; then
groupadd ssh_keys
fi

FAKE_KEY=$(mktemp -p /etc/ssh/ XXXX_key)
chgrp ssh_keys "$FAKE_KEY"

0 comments on commit 181ccc5

Please sign in to comment.