Skip to content

Commit

Permalink
Merge pull request #492 from kajinamit/fix-ssh-dir
Browse files Browse the repository at this point in the history
Fix wrong logic to check existence of .ssh dir
  • Loading branch information
openshift-merge-robot authored Aug 25, 2023
2 parents 8655d7b + 5ed91fa commit 895a6e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions devsetup/scripts/gen-edpm-compute-node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ if [ ! -f ${SSH_PUBLIC_KEY} ]; then
exit 1
fi

if test -f "${HOME}/.ssh"; then
if [ ! -d "${HOME}/.ssh" ]; then
mkdir "${HOME}/.ssh"
chmod 700 "${HOME}/.ssh"
chcon unconfined_u:object_r:ssh_home_t:s0 "${HOME}/.ssh"
restorecon -R "${HOME}/.ssh"
fi

cat <<EOF >${OUTPUT_DIR}/${EDPM_COMPUTE_NAME}.xml
Expand Down

0 comments on commit 895a6e0

Please sign in to comment.