-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #16620: Add a command to generate user accounts after installation #293
Fixes #16620: Add a command to generate user accounts after installation #293
Conversation
WIP |
99c5103
to
3ed4cb5
Compare
Commit modified |
share/commands/server-create-user
Outdated
# check hash | ||
if ! grep -qE "^[[:space:]]*<authentication[[:space:]]+hash=\"bcrypt\"[[:space:]]*>" "${USERFILE}" | ||
then | ||
echo "This command can only create users with the 'bcrypt' hash method" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe a link to some doc or an explanation f what the problem is ?
# check if user is already there | ||
if grep -qE "name[[:space:]]*=[[:space:]]*\"${USER}\"" "${USERFILE}" | ||
then | ||
echo "User '${USER}' already exists, aborting." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cnat' we replace it if it exists ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to avoid messing with xml using sed as much as I can
PR updated with a new commit |
This PR is not mergeable to upper versions. |
OK, squash merging this PR |
cf88c98
to
c0ef3fb
Compare
https://issues.rudder.io/issues/16620