1eff4a436e
Flavour is overloaded in openstack due to it being used by nova. Element seems to have the same feeling of combinability without using a term already in active use in the openstack community. Change-Id: Ia4c028d4062a8f69c66665821c94dd4bcdf06031
12 lines
369 B
Bash
Executable file
12 lines
369 B
Bash
Executable file
#!/bin/bash
|
|
# Save user SSH public key if available.
|
|
# XXX: Obviously not suitable for downloadable images.
|
|
|
|
set -e
|
|
|
|
if [ -e "/tmp/in_target.d/ssh-authorized-keys" ]; then
|
|
if [ -d ~stack ]; then
|
|
sudo -u stack mkdir ~stack/.ssh
|
|
sudo -Hiu stack dd of=~stack/.ssh/authorized_keys oflag=append conv=notrunc if=/tmp/in_target.d/ssh-authorized-keys
|
|
fi
|
|
fi
|