hassio-build/meta-hassio/recipes-core/dropbear/files/sync-authorized-keys
2017-04-06 11:51:00 +02:00

11 lines
203 B
Bash

#!/bin/bash
set -e
BOOT_SSH_KEY=/mnt/boot/authorized_keys
HOME_SSH_KEY=/home/root/.ssh/authorized_keys
if [ -f $BOOT_SSH_KEY ]; then
cp $BOOT_SSH_KEY $HOME_SSH_KEY
chmod 0600 $HOME_SSH_KEY
fi