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