[generate-ldif] Make MariaDB version detection more generic.

evodomains
William Hirigoyen 1 month ago
parent c7a6b3e694
commit efdbdee6a1
  1. 8
      generate-ldif/templates/generateldif.sh.j2

@ -408,12 +408,8 @@ EOT
fi
# MariaDB
if is_pkg_installed mariadb-server-10.3; then
mariadb_version=$(get_pkg_version mariadb-server-10.3)
elif is_pkg_installed mariadb-server-10.1; then
mariadb_version=$(get_pkg_version mariadb-server-10.1)
elif is_pkg_installed mariadb-server-10.0; then
mariadb_version=$(get_pkg_version mariadb-server-10.0)
if is_pkg_installed mariadb-server; then
mariadb_version=$(get_pkg_version mariadb-server)
fi
if [ -n "${mariadb_version}" ]; then
cat <<EOT >> "${ldif_file}"

Loading…
Cancel
Save