Create the user's authorized_keys file if it does not exist
Closes #2469
This commit is contained in:
@@ -16,3 +16,8 @@ verify_ssh_key_exists() {
|
||||
declare desc="Test that public key exists"
|
||||
[[ -e ${DOKKU_ROOT}/.ssh/authorized_keys ]] || dokku_log_fail "No public keys found."
|
||||
}
|
||||
|
||||
create_ssh_key_file() {
|
||||
declare desc="Ensure the public key file exists"
|
||||
touch "${DOKKU_ROOT}/.ssh/authorized_keys"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user