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

tags/smeserver-zabbix-proxy-0.3.1-1
Daniel Berteaud 12 years ago
parent 31100ea8ef
commit a4960f414a
  1. 6
      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"; $OUT .= <<"END";
#! /bin/sh #! /bin/sh
if [ -d /var/lib/mysql/$db ]; then 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
/usr/bin/mysqladmin create $db /usr/bin/mysqladmin create $db
/usr/bin/mysql $db < $schema /usr/bin/mysql $db < $schema
fi fi

Loading…
Cancel
Save