From f77e32f7eedd0e8c3c7929fa4b5253a08037825b Mon Sep 17 00:00:00 2001 From: Kevin Baensch Date: Fri, 6 Jan 2023 09:19:59 +0100 Subject: [PATCH] Fix missing newline when adding new authorized ssh keys. --- setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index 217dd8d..6cadc98 100755 --- a/setup.sh +++ b/setup.sh @@ -101,7 +101,7 @@ setup_sqlproxy() { PUB_KEY="$(cat ${HOME}/.ssh/${KEY_NAME}.pub)" if ! grep -qe "$(printf '%s$' "${PUB_KEY}")" "${PROJECT_PATH}/etc/ssh/.ssh/authorized_keys" then - printf 'command="/sqlproxy_cli.sh" %s' "${PUB_KEY}" >> "${PROJECT_PATH}/etc/ssh/.ssh/authorized_keys" + printf 'command="/sqlproxy_cli.sh" %s\n' "${PUB_KEY}" >> "${PROJECT_PATH}/etc/ssh/.ssh/authorized_keys" fi printf 'Restarting sql proxy (if running) to fix permissions.\n'