Bug in user create test output

Missing ! for central ssh authorized_file check in pub key update flow
This commit is contained in:
Clemens Schwaighofer
2023-04-05 13:27:05 +09:00
parent ebf0eaf412
commit fa3c4e0c6e

View File

@@ -319,7 +319,7 @@ while read i; do
fi;
cat "${ssh_keyfile_pub}" > ${SSH_AUTHORIZED_FILE};
else
if [ -z "${SSH_CENTRAL_AUTHORIZED_FILE_FOLDER}" ]; then
if [ ! -z "${SSH_CENTRAL_AUTHORIZED_FILE_FOLDER}" ]; then
echo "$> chattr -i ${SSH_AUTHORIZED_FILE}";
fi;
echo "$> cat ${ssh_keyfile_pub} > ${SSH_AUTHORIZED_FILE}";