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`
|
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
|
##### ENABLE_POP3
|
||||||
|
|
||||||
- **empty** => POP3 service disabled
|
- **empty** => POP3 service disabled
|
||||||
|
|
|
@ -864,8 +864,7 @@ function misc() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function _misc_save_states() {
|
function _misc_save_states() {
|
||||||
# Consolidate all state that should be persisted across container restarts into one mounted
|
# consolidate all states into a single directory (`/var/mail-state`) to allow persistence using docker volumes
|
||||||
# directory
|
|
||||||
statedir=/var/mail-state
|
statedir=/var/mail-state
|
||||||
if [ "$ONE_DIR" = 1 -a -d $statedir ]; then
|
if [ "$ONE_DIR" = 1 -a -d $statedir ]; then
|
||||||
notify 'inf' "Consolidating all state onto $statedir"
|
notify 'inf' "Consolidating all state onto $statedir"
|
||||||
|
|
Loading…
Reference in New Issue