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

This commit is contained in:
Daniel Berteaud 2013-06-05 16:30:04 +02:00
parent 31100ea8ef
commit a4960f414a
1 changed files with 1 additions and 5 deletions

View File

@ -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