Fix(run.sh): Add new line in authorized_keys [Fixes #12]
This commit is contained in:
parent
0b641a8253
commit
bc7b449a39
|
@ -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}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue