[remaster/ec2] fix ec2.start ssh pubkey setup

This commit is contained in:
Fabio Erculiani 2012-07-21 17:16:00 +02:00
parent 6a215cf3b4
commit 9a043621e4

View File

@ -9,7 +9,7 @@ fi
chmod 700 "${ssh_root}"
# As documented in http://awsdocs.s3.amazonaws.com/EC2/latest/ec2-ug.pdf
wget -qO- http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key > /tmp/openssh-key
wget -q -O - http://169.254.169.254/latest/meta-data/public-keys/0/openssh-key > /tmp/openssh-key
if [ "${?}" = "0" ]; then
cat /tmp/openssh-key >> "${ssh_root}"/authorized_keys
fi