gh-19: create authorized keys if it does not exist

pull/20/head
Javi Fontan 9 years ago
parent e04ab3383f
commit 66b8474374

@ -26,6 +26,8 @@ function add_keys {
[ -z "${SSH_PUBLIC_KEY}${EC2_PUBLIC_KEY}" ] && exit 0
[ ! -f /root/.ssh/authorized_keys ] && touch /root/.ssh/authorized_keys
mkdir -m0700 -p /root/.ssh
if [ -n "$SSH_PUBLIC_KEY" ]; then

Loading…
Cancel
Save