mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
Updated FAQ and Tips (markdown)
This commit is contained in:
parent
957e3056e6
commit
5ace30e413
|
@ -257,14 +257,20 @@ The config file I am talking about is this volume in the yml file:
|
|||
|
||||
To place such a script you can just make it in the config dir, for instance like this:
|
||||
`cd ./config`
|
||||
|
||||
`touch user-patches.sh`
|
||||
|
||||
`chmod +x user-patches.sh`
|
||||
|
||||
and then fill it with suitable code.
|
||||
|
||||
If you want to test it you can move into the running container, run it and see if it does what you want. For instance:
|
||||
`./setup.sh debug login # start shell in container`
|
||||
|
||||
`cat /tmp/docker-mailserver/user-patches.sh #check the file`
|
||||
|
||||
`/tmp/docker-mailserver/user-patches.sh ## run the script`
|
||||
|
||||
`exit`
|
||||
|
||||
You can do a lot of things with such a script. You can find an example user-patches.sh script here: [example user-patches.sh script](https://github.com/hanscees/dockerscripts/blob/master/scripts/tomav-user-patches.sh)
|
||||
|
|
Loading…
Reference in a new issue