removing leading space before first public key obtained from security_service when updating authorized_keys

This commit is contained in:
Axel Uhl committed 2024-01-16 17:59:19 +01:00
1 parent 1e545e198e
commit e7eccfb2d9
1 file changed
+1 -1
@@ -36,7 +36,7 @@ if [ "${curl_exit_code}" = "0" ]; then
# Start out with the original AWS-generated authorized_keys file
# and append the public SSH keys of all users having LANDSCAPE:MANAGE:AWS permission:
echo "$( cat ${SSH_DIR}/authorized_keys.org )
${public_keys}" | sort -u >${SSH_DIR}/authorized_keys
${public_keys}" | sort -u >${SSH_DIR}/authorized_keys
else
EXIT_CODE=${jq_exit_code}
logger -t sailing "Couldn't parse response of users_with_permission; jq exit code ${jq_exit_code}"