Base de donnée renommée en smtp_log

tags/0.1.1
Daniel Berteaud 12 years ago
parent d5fe6325be
commit 7030e6afe6
  1. 2
      root/etc/e-smith/db/configuration/defaults/qpsmtpd/DbName
  2. 4
      root/etc/e-smith/templates/etc/e-smith/sql/init/qpsmtpdLog2Sql
  3. 2
      root/etc/e-smith/templates/var/service/qpsmtpd/config/peers/0/03log2sql
  4. 2
      root/etc/e-smith/templates/var/service/qpsmtpd/config/peers/local/03log2sql
  5. 0
      smtp_log.sql

@ -1,9 +1,9 @@
{ {
my $db = ${'qpsmtpd'}{'DbName'} || 'mail_log'; my $db = ${'qpsmtpd'}{'DbName'} || 'smtp_log';
my $user = ${'qpsmtpd'}{'DbUser'} || 'qpsmtpd'; my $user = ${'qpsmtpd'}{'DbUser'} || 'qpsmtpd';
my $pass = ${'qpsmtpd'}{'DbPassword'} || 'secret'; my $pass = ${'qpsmtpd'}{'DbPassword'} || 'secret';
my $dbstruct = `rpm -qd smeserver-qpsmtpd-log2sql | grep mail_log.sql`; my $dbstruct = `rpm -qd smeserver-qpsmtpd-log2sql | grep smtp_log.sql`;
$OUT .= <<"END"; $OUT .= <<"END";
#! /bin/sh #! /bin/sh

@ -1,6 +1,6 @@
{ {
if (($qpsmtpd{'Log2Sql'} || 'enabled') eq 'enabled'){ if (($qpsmtpd{'Log2Sql'} || 'enabled') eq 'enabled'){
my $dbname = $qpsmtpd{'DbName'} || 'mail_log'; my $dbname = $qpsmtpd{'DbName'} || 'smtp_log';
my $dbuser = $qpsmtpd{'DbUser'} || 'qpsmtpd'; my $dbuser = $qpsmtpd{'DbUser'} || 'qpsmtpd';
my $dbpass = $qpsmtpd{'DbPassword'} || 'secret'; my $dbpass = $qpsmtpd{'DbPassword'} || 'secret';

@ -1,6 +1,6 @@
{ {
if (($qpsmtpd{'Log2Sql'} || 'enabled') eq 'enabled'){ if (($qpsmtpd{'Log2Sql'} || 'enabled') eq 'enabled'){
my $dbname = $qpsmtpd{'DbName'} || 'mail_log'; my $dbname = $qpsmtpd{'DbName'} || 'smtp_log';
my $dbuser = $qpsmtpd{'DbUser'} || 'qpsmtpd'; my $dbuser = $qpsmtpd{'DbUser'} || 'qpsmtpd';
my $dbpass = $qpsmtpd{'DbPassword'} || 'secret'; my $dbpass = $qpsmtpd{'DbPassword'} || 'secret';

Loading…
Cancel
Save