fix: remove reference to old ROOT_HOME variable (fixes #27)
This commit is contained in:
parent
27f71af0f6
commit
871f962bca
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue