mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 21:11:08 +02:00
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:
parent
47b3dd1038
commit
14454b0cec
@ -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"
|
|
1
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/oem-vagrant-0.0.1-r1.ebuild
vendored
Symbolic link
1
sdk_container/src/third_party/coreos-overlay/coreos-base/oem-vagrant/oem-vagrant-0.0.1-r1.ebuild
vendored
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
oem-vagrant-0.0.1.ebuild
|
@ -17,8 +17,5 @@ S="${WORKDIR}"
|
|||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
insinto "/"
|
insinto "/"
|
||||||
doins "${FILESDIR}/vagrant.pub"
|
doins "${FILESDIR}/authorized_keys"
|
||||||
|
|
||||||
exeinto "/"
|
|
||||||
doexe ${FILESDIR}/run.sh
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user