borg2-backup.sh: Fix error if 'DB_TYPE=None' is specified in the configuration file.

This commit is contained in:
Christoph 2024-12-15 12:22:50 +01:00
parent a7c091e62d
commit cb4209dad5

View File

@ -317,6 +317,8 @@ elif [[ "${DB_TYPE,,}" = "mysql" ]] ; then
[[ -z "${MYSQL_CREDENTIALS}" ]] && MYSQL_CREDENTIALS="${DEFAULT_MYSQL_CREDENTIALS}"
elif [[ "${DB_TYPE,,}" = "psql" ]] || [[ "${DB_TYPE,,}" = "postgresql" ]] || [[ "${DB_TYPE,,}" = "postgres" ]] ; then
[[ -z "${PSQL_SYSTEM_USER}" ]] && PSQL_SYSTEM_USER="${DEFAULT_PSQL_SYSTEM_USER}"
elif [[ "${DB_TYPE,,}" = "none" ]] ; then
DB_TYPE="None"
else
fatal "Unknown DB_TYPE '${DB_TYPE}'."
fi