fix(coreos-base/oem-vagrant): No need for run.sh for copying ssh key.

Copying authorized_keys is now built in to coreos-init.
This commit is contained in:
Michael Marineau 2013-08-12 19:05:00 -04:00
parent 47b3dd1038
commit 14454b0cec
4 changed files with 2 additions and 21 deletions

View File

@ -1,17 +0,0 @@
#!/bin/bash
set -e
USER_DIR="/home/core"
if [ -e "${USER_DIR}/.ssh/authorized_keys" ]; then
exit 0
fi
if [ ! -d "${USER_DIR}/.ssh" ]; then
mkdir -p ${USER_DIR}/.ssh
chmod 700 ${USER_DIR}/.ssh
fi
cp /usr/share/oem/vagrant.pub "${USER_DIR}/.ssh/authorized_keys"
chown -R core: "${USER_DIR}/.ssh"

View File

@ -0,0 +1 @@
oem-vagrant-0.0.1.ebuild

View File

@ -17,8 +17,5 @@ S="${WORKDIR}"
src_install() {
insinto "/"
doins "${FILESDIR}/vagrant.pub"
exeinto "/"
doexe ${FILESDIR}/run.sh
doins "${FILESDIR}/authorized_keys"
}