Adapt to be usable with upstream zabbix packages

tags/smeserver-zabbix-proxy-0.3.1-1
Daniel Berteaud 5 years ago
parent 57b9e846d4
commit 98243d1514
  1. 4
      root/etc/e-smith/templates/etc/e-smith/sql/init/80zabbix-proxy
  2. 3
      smeserver-zabbix-proxy.spec

@ -3,14 +3,14 @@ my $db = ${'zabbix-proxy'}{'DbName'} || 'zabbix';
my $user = ${'zabbix-proxy'}{'DbUser'} || 'zabbix';
my $pass = ${'zabbix-proxy'}{'DbPassword'} || 'secret';
my $schema = `rpm -qd zabbix-server | grep schema | grep mysql`;
my $schema = `rpm -qd zabbix-proxy-mysql | grep schema | grep mysql`;
$OUT .= <<"END";
#! /bin/sh
if [ \! -d /var/lib/mysql/$db ]; then
/usr/bin/mysqladmin create $db
/usr/bin/mysql $db < $schema
gzip -dc $schema | /usr/bin/mysql $db
fi
/usr/bin/mysql <<EOF

@ -12,10 +12,11 @@ BuildRequires: e-smith-devtools
BuildRoot: /var/tmp/%{name}-%{version}
Requires: e-smith-release >= 7.0
Requires: fping
Requires: zabbix-server-mysql
Requires: zabbix-proxy-mysql
Requires: smeserver-remoteuseraccess
Conflicts: smeserver-zabbix-server
Obsoletes: zabbix-server
Obsoletes: zabbix-server-mysql
AutoReqProv: no
%description

Loading…
Cancel
Save