[packages/zabbix] fix psql commands in banner
atler
atler at pld-linux.org
Sun Apr 2 23:55:37 CEST 2023
commit 2bc117c0d9c1f05cd0506821f93fe783c5c12ba7
Author: Jan Palus <atler at pld-linux.org>
Date: Sun Apr 2 20:45:27 2023 +0200
fix psql commands in banner
zabbix.spec | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/zabbix.spec b/zabbix.spec
index 925f26f..2c1c745 100644
--- a/zabbix.spec
+++ b/zabbix.spec
@@ -532,10 +532,10 @@ if [ "$1" = 1 ]; then
Running these should be fine in most cases:
createuser zabbix
- createdb -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
+ createdb -O zabbix -E utf8 -T template0 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
EOF
fi
ln -sf zabbix_server-postgresql %{_sbindir}/zabbix_server || :
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/zabbix.git/commitdiff/b14db1f1da6ea36299eba1037d3f083c1c69eb05
More information about the pld-cvs-commit
mailing list