aboutsummaryrefslogtreecommitdiffstats
path: root/main/openrc/firstboot.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/openrc/firstboot.initd')
-rw-r--r--main/openrc/firstboot.initd2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/openrc/firstboot.initd b/main/openrc/firstboot.initd
index 93769059590..eac4ef86c66 100644
--- a/main/openrc/firstboot.initd
+++ b/main/openrc/firstboot.initd
@@ -21,13 +21,13 @@ start() {
if [ -n "$KOPT_ssh_key" ] && [ ! -f "/root/.ssh/authorized_keys" ]; then
einfo "Fetching ssh keys"
mkdir -pm 700 /root/.ssh
+ checkpath -fm 0600 /root/.ssh/authorized_keys
case "$KOPT_ssh_key" in
https://*|ftps://*|http://*)
wget -q "$KOPT_ssh_key" -O /root/.ssh/authorized_keys
rc=$?;;
*) echo "$KOPT_ssh_key" > /root/.ssh/authorized_keys;;
esac
- chmod 600 /root/.ssh/authorized_keys
fi
eend $rc
}