import uniquement du schéma lors de la création de la base de données

tags/smeserver-zabbix-proxy-0.3.1-1
Daniel Berteaud 13 years ago
parent b880124448
commit c7fc76bc8f
  1. 4
      root/etc/e-smith/templates/etc/e-smith/sql/init/80zabbix-proxy

@ -4,8 +4,6 @@ my $user = ${'zabbix-proxy'}{'DbUser'} || 'zabbix';
my $pass = ${'zabbix-proxy'}{'DbPassword'} || 'secret';
my $schema = `rpm -qd zabbix-server | grep schema | grep mysql`;
my $data = `rpm -qd zabbix-server | grep data.sql`;
my $images = `rpm -qd zabbix-server | grep images_mysql`;
$OUT .= <<"END";
@ -17,8 +15,6 @@ if [ -d /var/lib/mysql/$db ]; then
else
/usr/bin/mysqladmin create $db
/usr/bin/mysql $db < $schema
/usr/bin/mysql $db < $data
/usr/bin/mysql $db < $images
fi
/usr/bin/mysql <<EOF

Loading…
Cancel
Save