From 299bc807f22100dce92006ff2322dda83befce9b Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 3 Nov 2017 13:45:28 +0100 Subject: [PATCH] Fix error in determine database type on script 'get_mail_domains.sh'. --- get_mail_domains.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/get_mail_domains.sh b/get_mail_domains.sh index 54c06c0..3001fb2 100755 --- a/get_mail_domains.sh +++ b/get_mail_domains.sh @@ -97,6 +97,8 @@ else fi fi +[[ -n "$db_type" ]] || db_type="$DEFAULT_db_type" + if [[ "$db_type" != "pgsql" ]] && [[ "$db_type" != "mysql" ]]; then fatal "Unknown Database Type '$db_type' for Password Database (Parameter db_type)" fi @@ -132,7 +134,7 @@ fi echo "" echononl " Collect supported domains at this server.." -if $mysql ; then +if [[ "$cwdb_type" = "mysql" ]] ; then domains=$(mysql $mysql_credential_args "$db_name" -N -s -e \ "SELECT domain FROM domain ORDER by domain" 2> "$log_messages") else