Skip to content

Commit

Permalink
[re-]apply selinux labels to authorized_keys (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoblitt authored and antonbabenko committed Feb 24, 2017
1 parent 27af6a3 commit a42b62a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions user_data.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ done
chown $SSH_USER:$SSH_USER $KEYS_FILE
chmod 600 $KEYS_FILE
mv $TEMP_KEYS_FILE $KEYS_FILE
if selinuxenabled; then
restorecon -R -v $KEYS_FILE
fi
EOF

cat <<"EOF" > /home/${ssh_user}/.ssh/config
Expand Down

1 comment on commit a42b62a

@james-gonzalez
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has broken things for me, I'm getting now ./update_ssh_authorized_keys.sh: line 33: selinuxenabled: command not found

Please sign in to comment.