fix: setup email list should only work with ACCOUNT_PROVISIONER=FILE

This commit is contained in:
Brennan Kinney 2025-04-23 18:12:22 +12:00 committed by GitHub
parent b653d9a586
commit 54bb7d36ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,6 +8,10 @@ source /usr/local/bin/helpers/index.sh
source /etc/dms-settings 2>/dev/null
function _main() {
if [[ ${ACCOUNT_PROVISIONER} != 'FILE' ]]; then
_exit_with_error "This command is only compatible with 'ACCOUNT_PROVISIONER=FILE'"
fi
local DATABASE_ACCOUNTS='/tmp/docker-mailserver/postfix-accounts.cf'
local DATABASE_VIRTUAL='/tmp/docker-mailserver/postfix-virtual.cf'