Skip to content
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

Fix start gvmd script #2140

Merged
merged 4 commits into from
Feb 27, 2024
Merged

Fix start gvmd script #2140

merged 4 commits into from
Feb 27, 2024

Conversation

bjoernricks
Copy link
Contributor

What

Update and fix the container startup script

Why

It wasn't possible to override the postgres data dir and contained an issue when users similar to the initial user exist (like if the user is admin and the users foo_admin and admin_bar exist).

@bjoernricks bjoernricks requested review from mattmundell and a team as code owners February 27, 2024 10:15
@bjoernricks bjoernricks enabled auto-merge (rebase) February 27, 2024 10:15
Copy link

Conventional Commits Report

😢 No conventional commits found.

👉 Learn more about the conventional commits usage at Greenbone.

The line got duplicated likely when the license header was added.
Always use spaces instead of tabs.
…cript

Testing if the PGRES_DATA env variable is already set missed a space
before the closing bracket. Therefore it wasn't possible to override the
to be used postgres data directory.

When shellcheck warns you, you should give it attention.
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.
@bjoernricks bjoernricks force-pushed the fix-start-gvmd-script branch from c373755 to 1f8d14e Compare February 27, 2024 10:30
Copy link
Contributor

@mattmundell mattmundell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine.

@bjoernricks bjoernricks merged commit 07b89ac into main Feb 27, 2024
9 checks passed
@bjoernricks bjoernricks deleted the fix-start-gvmd-script branch February 27, 2024 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants