13 lines
376 B
Bash
Executable File
13 lines
376 B
Bash
Executable File
#! /bin/bash
|
|
|
|
# shellcheck source=../scripts/helpers/index.sh
|
|
source /usr/local/bin/helpers/index.sh
|
|
|
|
DATABASE='/tmp/docker-mailserver/postfix-virtual.cf'
|
|
|
|
[[ -f ${DATABASE} ]] || _exit_with_error "No 'postfix-virtual.cf' file"
|
|
[[ -s ${DATABASE} ]] || _exit_with_error "Empty 'postfix-virtual.cf' - no aliases have been added"
|
|
|
|
_get_valid_lines_from_file "${DATABASE}"
|
|
exit 0
|