From a4960f414a5f417f9467acbd051d352127339223 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 5 Jun 2013 16:30:04 +0200 Subject: [PATCH] Don't try to update the schema of the database, it doesn't work and is not very usefull for a proxy as the database can be dropped and re-created --- root/etc/e-smith/templates/etc/e-smith/sql/init/80zabbix-proxy | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/root/etc/e-smith/templates/etc/e-smith/sql/init/80zabbix-proxy b/root/etc/e-smith/templates/etc/e-smith/sql/init/80zabbix-proxy index 391da50..3e52741 100644 --- a/root/etc/e-smith/templates/etc/e-smith/sql/init/80zabbix-proxy +++ b/root/etc/e-smith/templates/etc/e-smith/sql/init/80zabbix-proxy @@ -8,11 +8,7 @@ my $schema = `rpm -qd zabbix-server | grep schema | grep mysql`; $OUT .= <<"END"; #! /bin/sh -if [ -d /var/lib/mysql/$db ]; then - for P in \$(rpm -qd zabbix-server | grep dbpatch | grep mysql); do - /usr/bin/mysql $db < \$P - done -else +if [ \! -d /var/lib/mysql/$db ]; then /usr/bin/mysqladmin create $db /usr/bin/mysql $db < $schema fi