Skip to content

Commit

Permalink
Fix getting the uuid of the admin user in container startup script
Browse files Browse the repository at this point in the history
There could be more then one user starting with admin in their names
like foo_admin or admin_foo. Therefore fix the grep command to only
show the user admin.
  • Loading branch information
bjoernricks committed Feb 27, 2024
1 parent 960c58a commit 1f8d14e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .docker/start-gvmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ gvmd --migrate || true
gvmd --create-user=$USER --password=$PASSWORD || true

# set the feed import owner
uid=$(gvmd --get-users --verbose | grep $USER | awk '{print $2}')
uid=$(gvmd --get-users --verbose | grep "^$USER " | awk '{print $2}')
gvmd --modify-setting 78eceaec-3385-11ea-b237-28d24461215b --value "$uid"

echo "starting gvmd"
Expand Down

0 comments on commit 1f8d14e

Please sign in to comment.