Create SSH directory before authorized_keys file

pull/20/head
Daniel Dehennin 9 years ago
parent 01162730e0
commit a60dda7eae

@ -29,10 +29,10 @@ function add_keys {
[ -z "${SSH_PUBLIC_KEY}${EC2_PUBLIC_KEY}" ] && exit 0
[ ! -f $AUTH_FILE ] && touch $AUTH_FILE
mkdir -m0700 -p $AUTH_DIR
[ ! -f $AUTH_FILE ] && touch $AUTH_FILE
if [ -n "$SSH_PUBLIC_KEY" ]; then
echo "$SSH_PUBLIC_KEY" | add_keys
fi

Loading…
Cancel
Save