Skip to content

Commit

Permalink
Fixes #21135: rudder server create user error
Browse files Browse the repository at this point in the history
  • Loading branch information
peckpeck committed May 19, 2022
1 parent dec2673 commit eb883d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share/commands/server-create-user
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ while getopts "u:p:" opt; do
done

# check hash
if ! grep -qE "^[[:space:]]*<authentication[[:space:]]+hash=\"bcrypt\"[[:space:]]*>" "${USERFILE}"
if ! grep -qE "^[[:space:]]*<authentication[[:space:]]+hash=\"bcrypt\".*>" "${USERFILE}"
then
echo "This command can only create users when the 'bcrypt' hash method is used"
echo "Particularly, for servers upgraded from pre-6.1, it requires resetting all"
Expand Down

0 comments on commit eb883d6

Please sign in to comment.