Commit 23ee4666 authored by Julian Brost's avatar Julian Brost 🦄
Browse files

Merge branch 'mariadb-connector-master' into 'master'

Use mariadb-connector-c for RHEL 8+

See merge request packaging/rpm-icinga2!31
parents 76f35850 66ce28ca
Pipeline #22449 passed with stages
in 47 minutes and 11 seconds
......@@ -251,9 +251,13 @@ BuildRequires: libmysqlclient-devel
BuildRequires: mysql-devel
%endif
%else
%if 0%{?rhel} >= 8
BuildRequires: mariadb-connector-c-devel
%else
BuildRequires: mysql-devel
%endif #suse
%endif
Requires: %{name}-bin = %{version}-%{release}
......@@ -643,6 +647,7 @@ getent passwd %{icinga_user} >/dev/null || %{_sbindir}/useradd -c "icinga" -s /s
%endif
%endif
%if %{with mysql}
%post ido-mysql
if [ ${1:-0} -eq 1 ] && [ -e %{_sysconfdir}/%{name}/features-enabled/ido-mysql.conf ]
then
......@@ -659,7 +664,9 @@ if [ "$1" = "0" ]; then
fi
exit 0
%endif
%if %{with pgsql}
%post ido-pgsql
if [ ${1:-0} -eq 1 ] && [ -e %{_sysconfdir}/%{name}/features-enabled/ido-pgsql.conf ]
then
......@@ -676,6 +683,7 @@ if [ "$1" = "0" ]; then
fi
exit 0
%endif
%if 0%{?use_selinux}
%post selinux
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment