mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
ONE_DIR documentation (#460)
* Fixes #457 adding information regarding `ONE_DIR` env variable
This commit is contained in:
parent
0216ce84a2
commit
d4cee677ce
|
@ -141,6 +141,11 @@ Note: this spamassassin setting needs `ENABLE_SPAMASSASSIN=1`
|
|||
|
||||
Note: this spamassassin setting needs `ENABLE_SPAMASSASSIN=1`
|
||||
|
||||
##### ONE_DIR
|
||||
|
||||
- **0** => state in default directories
|
||||
- 1 => consolidate all states into a single directory (`/var/mail-state`) to allow persistence using docker volumes
|
||||
|
||||
##### ENABLE_POP3
|
||||
|
||||
- **empty** => POP3 service disabled
|
||||
|
|
|
@ -864,8 +864,7 @@ function misc() {
|
|||
}
|
||||
|
||||
function _misc_save_states() {
|
||||
# Consolidate all state that should be persisted across container restarts into one mounted
|
||||
# directory
|
||||
# consolidate all states into a single directory (`/var/mail-state`) to allow persistence using docker volumes
|
||||
statedir=/var/mail-state
|
||||
if [ "$ONE_DIR" = 1 -a -d $statedir ]; then
|
||||
notify 'inf' "Consolidating all state onto $statedir"
|
||||
|
|
Loading…
Reference in a new issue