Fix for #1808#1874
Conversation
There was a problem hiding this comment.
If that is the reason wouldn't it then make sense to modify the other commands to use _docker_container instead of _docker_image too?
EDIT: I Just try to understand why it behaves Like this. Are the other commands working bc they do only modify options/settings that are persisted in the mailstate? But those states arent mounted by _docker_image too?
First of all: Why was the |
|
Lines 235 to 237 in 0cd7232 |
|
History shows the original |
The advantage of
Yes. Because we don't know, where the maildata exactly resides on the host (no we should not think about parsing To sum things up: While writing this, I noticed, that Lines 221 to 226 in 0cd7232 We could discard this PR, but then |
If there isn't a situation where it'd make sense to use Regarding the rest of your comment, that seems like useful information to add to documention? Seems some of it would be relevant to maintainers/contributors and another part maybe for the existing |
|
After reading through all of this, I could provide a PR that reverses my last PR. With my last PR I disabled the possibility to delete more than one user at a time with one run of Ping me if I should re-enable this. This look good however:) |
I had a look at the documentation, but to be honest, I've no idea where to put it at best. What exactly would you suggest to put at setup.sh? Creating a new category for developers, which e.g. describes the internal works of
Depends on your spare time 😉 Go ahead if it's no big deal for you 👍 But if we leave it as it is, it's also fine I think.
I don't think so at the moment. But I'll wait for @polarathene feedback or from anybody else of course. |
It could be added as a I can add it if you like. I'll add it to my backlog? I'm presently chipping away at the contributor section for documentation (both a contributor and maintainer page). That has priority as it will help better inform contributors how to write documentation.
This can just be a maintainer notes page with a heading/section for notes on We have a roughed out a contributing section already with stubs for some pages like writing tests for example. Notes for maintainers could be added to a new From a new user perspective, viewing the current
This could be a note after the I'm not great at parsing the
Probably useful for anyone maintaining/auditing the script. Could be added to maintainer docs, or inline documentation within the script file itself? (The docs Usage section with the CLI output looks like it's possibly out of date/sync?)
Would this have alleviated the issue prior to any changes? Is it an indication that maintainers and users aren't as aware of this approach and it could be better highlighted/emphasized in our new docs? !!! tip "Target a running container instance"
By default `setup.sh` commands will run in a new container without any volumes attached. This is useful when setting up a mailserver, however for maintenance sometimes you need to target a running instance that has volumes attached.
Use `-c <container name>` to target an existing `docker-mailserver` instance for `setup.sh` commands to run within.That may be a bit inaccurate, I haven't actually used this project properly in some time and forget what it's like using this file :) It seems to suggest it's run externally of the container, to run some commands within the container? A little puzzling since we have May be better to move this off to a separate discussion/issue thread. I have no opinion on merging or closing the PR personally, just an interest in the UX and maintainance of |
Yes please ❤️
I guess, that's because
I am not sure. The whole error was a bit hard to track down IMHO. Also it was a clear bug. Not some kind of misusage of
More/better documentation is always good 👍
Yes. I am going to merge this now. As you may noticed, documentation does not belong to my strengths 😕. However I am happy to support/review/help when it goes to technical contents. |
I just spent hours of my life trying to figure out what the heck is wrong with my delete and create commands, all to find out that -c is necessary... This definitely needs to work out of the box :) |
|
As this has been fixed, you should update to the latest setup.sh file. |
Description
It was not possible to delete the mail directory when using
setup.shThat was caused by not using the running mail container, instead a new container was started without
maildatabeing mounted.Fixes #1808
Type of change
Checklist: