Skip to content

fix(setup.sh): Do not override an existing CONTAINER_NAME value#2622

Merged
polarathene merged 2 commits intodocker-mailserver:masterfrom
polarathene:fix/setupsh-container-name
Jun 6, 2022
Merged

fix(setup.sh): Do not override an existing CONTAINER_NAME value#2622
polarathene merged 2 commits intodocker-mailserver:masterfrom
polarathene:fix/setupsh-container-name

Conversation

@polarathene
Copy link
Copy Markdown
Member

Description

This bug was causing setup.sh -c to target the wrong container when an earlier docker-mailserver container was already running.

I believe this is to try lookup an implicit default, but an explicit value for -c sets CONTAINER_NAME prior to this and should be used. It was causing some recent test failures in test/mail_with_relays.bats, both on CI and my local VM.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • New and existing unit tests pass locally with my changes

This bug was causing `setup.sh -c` to target the wrong container.
Copy link
Copy Markdown
Member

@georglauterbach georglauterbach left a comment

Choose a reason for hiding this comment

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

Nice observation!

@polarathene polarathene merged commit fa8bfdc into docker-mailserver:master Jun 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants