From f408585d8b2369e89c82a7a707dfd71f22dcf72b Mon Sep 17 00:00:00 2001 From: kkkkkks0 Date: Thu, 20 Oct 2022 18:58:03 +0800 Subject: [PATCH] fixes sameersbn#2645 --- assets/runtime/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/runtime/functions b/assets/runtime/functions index 90dbe191..787ce5c8 100644 --- a/assets/runtime/functions +++ b/assets/runtime/functions @@ -1687,7 +1687,7 @@ generate_ssh_key() { } generate_ssh_host_keys() { - sed -i "s|^[#]*MaxStartups 10:30:60|MaxStartups ${GITLAB_SSH_MAXSTARTUPS}|" /etc/ssh/sshd_config + sed -i "s|^[#]*MaxStartups[^$]*|MaxStartups ${GITLAB_SSH_MAXSTARTUPS}|" /etc/ssh/sshd_config sed -i "s|#HostKey /etc/ssh/|HostKey ${GITLAB_DATA_DIR}/ssh/|g" /etc/ssh/sshd_config if [[ ! -e ${GITLAB_DATA_DIR}/ssh/ssh_host_rsa_key ]]; then echo -n "Generating OpenSSH host keys... "