Compare commits

...

1 commit

Author SHA1 Message Date
Gerrit Pannek bc7b449a39 Fix(run.sh): Add new line in authorized_keys [Fixes #12] 2022-02-05 18:12:37 +01:00

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}"