1
1
Fork 0
mirror of https://github.com/docker-mailserver/docker-mailserver synced 2024-04-27 23:35:06 +02:00
docker-mailserver/target/bin/listalias
2023-05-26 01:39:39 +02:00

21 lines
439 B
Bash
Executable File

#!/bin/bash
# shellcheck source=../scripts/helpers/index.sh
source /usr/local/bin/helpers/index.sh
function _main() {
local DATABASE_VIRTUAL='/tmp/docker-mailserver/postfix-virtual.cf'
_list_entries "${DATABASE_VIRTUAL}"
}
function _list_entries() {
local DATABASE=${1}
_db_should_exist_with_content "${DATABASE}"
while read -r LINE; do
echo -e "* ${LINE}\n"
done < <(_get_valid_lines_from_file "${DATABASE}")
}
_main