Switch to MySQL in dl.php

tags/smeserver-dl-0.2.1-1
Daniel Berteaud 11 years ago
parent 668f97e5ba
commit 2772c898b1
  1. 11
      root/etc/e-smith/templates/etc/dl.php/50Database

@ -1 +1,10 @@
$dsn = "sqlite:$spoolDir/data.sql"; {
my $dbn = $dl{'DbName'} || 'dl';
my $dbu = $dl{'DbUser'} || 'dl';
my $dbp = $dl{'DbPassword'} || 'secret';
$OUT .=<<"EOF"
\$dsn = "mysql:host=localhost;dbname=$dbn";
\$dbUser = "$dbu";
\$dbPassword = "$dbp";
EOF
}

Loading…
Cancel
Save