mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
c881facbd2
* splitting start-mailserver.sh * refactoring part 2 * refactored setup-stack.sh * stzarted adjusting target/bin/*.sh to use new usage format * corrected lowercase-uppercase test error * better handling of .bashrc variable export * linting tests and fix for default assignements * last stylistic changes and rebase
13 lines
373 B
Bash
Executable file
13 lines
373 B
Bash
Executable file
#! /bin/bash
|
|
|
|
# shellcheck source=../scripts/helper-functions.sh
|
|
. /usr/local/bin/helper-functions.sh
|
|
|
|
DATABASE=${DATABASE:-/tmp/docker-mailserver/postfix-virtual.cf}
|
|
|
|
[[ -f ${DATABASE} ]] || errex "Error: No postfix-virtual.cf file"
|
|
[[ -s ${DATABASE} ]] || errex "Error: Empty postfix-virtual.cf - no aliases have been added"
|
|
|
|
grep -v "^\s*$\|^\s*\#" "${DATABASE}"
|
|
exit 0
|