From bc7b449a392f5576aeff9173dd036f42d503fe40 Mon Sep 17 00:00:00 2001 From: Gerrit Pannek Date: Sat, 5 Feb 2022 18:12:37 +0100 Subject: [PATCH] Fix(run.sh): Add new line in authorized_keys [Fixes #12] --- data/run.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data/run.sh b/data/run.sh index 63ec0eb..215cbe6 100755 --- a/data/run.sh +++ b/data/run.sh @@ -76,8 +76,9 @@ for keyfile in $(find "${SSH_KEY_DIR}/clients" ! -regex '.*/\..*' -a -type f); d borg_cmd="${BORG_CMD} --append-only" fi - echo -n "restrict,command=\"$(eval echo -n \"${borg_cmd}\")\" " >> ${AUTHORIZED_KEYS_PATH} - cat ${keyfile} >> ${AUTHORIZED_KEYS_PATH} + echo -n "restrict,command=\"$(eval echo -n \"${borg_cmd}\")\" " >> ${AUTHORIZED_KEYS_PATH} + cat ${keyfile} >> ${AUTHORIZED_KEYS_PATH} + echo >> ${AUTHORIZED_KEYS_PATH} done chmod 0600 "${AUTHORIZED_KEYS_PATH}"