ONE_DIR documentation (#460)

* Fixes #457 adding information regarding `ONE_DIR` env variable
This commit is contained in:
Thomas VIAL 2017-01-09 17:11:10 +01:00 committed by GitHub
parent 0216ce84a2
commit d4cee677ce
2 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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"