fix: remove reference to old ROOT_HOME variable (fixes #27)

This commit is contained in:
oddlama 2022-02-10 14:36:30 +01:00
parent 27f71af0f6
commit 871f962bca
No known key found for this signature in database
GPG Key ID: 14EFE510775FE39A
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ function install_sshd() {
if [[ -n "$ROOT_SSH_AUTHORIZED_KEYS" ]]; then if [[ -n "$ROOT_SSH_AUTHORIZED_KEYS" ]]; then
einfo "Adding authorized keys for root" einfo "Adding authorized keys for root"
touch_or_die 0600 "/root/.ssh/authorized_keys" touch_or_die 0600 "/root/.ssh/authorized_keys"
echo "$ROOT_SSH_AUTHORIZED_KEYS" > "$ROOT_HOME/.ssh/authorized_keys" \ echo "$ROOT_SSH_AUTHORIZED_KEYS" > "/root/.ssh/authorized_keys" \
|| die "Could not add ssh key to /root/.ssh/authorized_keys" || die "Could not add ssh key to /root/.ssh/authorized_keys"
fi fi
} }