Reduce unnecessary Disk IO#1966
Conversation
|
@nukedupe Please have a look at CI: Your changes do not actually achieve what you intended, or CI needs adjustments. The former is way more likely. |
|
@docker-mailserver/maintainers This is ready for review :) |
| /etc/letsencrypt/acme.json \ | ||
| /etc/letsencrypt/live | ||
| inotifywait -qq -r \ | ||
| -e modify -e create -e delete -e moved \ |
There was a problem hiding this comment.
There is no "move" event: https://man.cx/inotifywait#heading7
There was a problem hiding this comment.
You mean, there is no "moved" , event? I will correct this, the event is called "move", without the "d". Is that what you mean?
There was a problem hiding this comment.
Interestingly, tests fail again. Oh nice.
There was a problem hiding this comment.
My mistake, I haven't tested letsencrypt stuff. Seems like there is a problem with inotifywait on volume mounts.
echo "" >> /tmp/docker-mailserver/postfix-aliases.cf works
echo "" >> /etc/letsencrypt/acme.json works not
Does something speak against using sha512sum -c --status /tmp/docker-mailserver-config-chksum and check return value and not write to temp file and do cmp --silent ... ?
There was a problem hiding this comment.
My mistake, I haven't tested letsencrypt stuff. Seems like there is a problem with inotifywait on volume mounts.
echo "" >> /tmp/docker-mailserver/postfix-aliases.cfworks
echo "" >> /etc/letsencrypt/acme.jsonworks notDoes something speak against using
sha512sum -c --status /tmp/docker-mailserver-config-chksumand check return value and not write to temp file and docmp --silent ...?
No, nothing speaks against it. Can you open a PR yourself? I would then close this PR.
There was a problem hiding this comment.
Here is a better solution. But my PR is not in this PR... have to learn git... Can you fix it?
There was a problem hiding this comment.
Sorry, very low on time lately. Learning GIT is always beneficial, trust me :) I will close this - and if you have a working solution, create a pull request on GitHub.
PS: Have a look at our CONTRIBUTING.md, which explains how to do a pull request and add code on detail :)
Description
See #1958
@nukedupe please double-check this PR too.
Fixes #1958
Type of change
Checklist:
docs/)