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:
parent
31100ea8ef
commit
a4960f414a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue