Fix(run.sh): Add new line in authorized_keys [Fixes #12]

This commit is contained in:
Gerrit Pannek 2022-02-05 18:12:37 +01:00 committed by Nold
parent 0b641a8253
commit 95ec06eb80

View file

@ -78,6 +78,7 @@ for keyfile in $(find "${SSH_KEY_DIR}/clients" ! -regex '.*/\..*' -a -type f); d
echo -n "restrict,command=\"$(eval echo -n \"${borg_cmd}\")\" " >> ${AUTHORIZED_KEYS_PATH} echo -n "restrict,command=\"$(eval echo -n \"${borg_cmd}\")\" " >> ${AUTHORIZED_KEYS_PATH}
cat ${keyfile} >> ${AUTHORIZED_KEYS_PATH} cat ${keyfile} >> ${AUTHORIZED_KEYS_PATH}
echo >> ${AUTHORIZED_KEYS_PATH}
done done
chmod 0600 "${AUTHORIZED_KEYS_PATH}" chmod 0600 "${AUTHORIZED_KEYS_PATH}"