From 67294ebceafc376e279210f25de2b7d7b9bfe14e Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Wed, 10 Jan 2024 23:26:58 +0100 Subject: [PATCH] - fix %post messages --- zabbix.spec | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/zabbix.spec b/zabbix.spec index 1adc9a5..f07635a 100644 --- a/zabbix.spec +++ b/zabbix.spec @@ -427,9 +427,9 @@ if [ "$1" = 1 ]; then Running these should be fine in most cases: mysqladmin create zabbix - zcat %{_docdir}/%{name}-server-mysql-%{version}/schema.sql.gz | mysql zabbix - zcat %{_docdir}/%{name}-server-mysql-%{version}/images.sql.gz | mysql zabbix - zcat %{_docdir}/%{name}-server-mysql-%{version}/data.sql.gz | mysql zabbix + cat %{_docdir}/%{name}-server-mysql-%{version}/schema.sql | mysql zabbix + cat %{_docdir}/%{name}-server-mysql-%{version}/images.sql | mysql zabbix + cat %{_docdir}/%{name}-server-mysql-%{version}/data.sql | mysql zabbix EOF fi ln -sf %{_sbindir}/zabbix_server-mysql %{_sbindir}/zabbix_server || : @@ -443,9 +443,9 @@ if [ "$1" = 1 ]; then createuser -U postgres zabbix createdb -U postgres -O zabbix zabbix - zcat %{_docdir}/%{name}-server-postgresql-%{version}/schema.sql.gz | psql -U zabbix zabbix - zcat %{_docdir}/%{name}-server-postgresql-%{version}/images.sql.gz | psql -U zabbix zabbix - zcat %{_docdir}/%{name}-server-postgresql-%{version}/data.sql.gz | psql -U zabbix zabbix + cat %{_docdir}/%{name}-server-postgresql-%{version}/schema.sql | psql -U zabbix zabbix + cat %{_docdir}/%{name}-server-postgresql-%{version}/images.sql | psql -U zabbix zabbix + cat %{_docdir}/%{name}-server-postgresql-%{version}/data.sql | psql -U zabbix zabbix EOF fi ln -sf %{_sbindir}/zabbix_server-postgresql %{_sbindir}/zabbix_server || : -- 2.46.0