diff --git a/root/etc/e-smith/templates/etc/dl.php/50Database b/root/etc/e-smith/templates/etc/dl.php/50Database index 09971b1..49bfa8e 100644 --- a/root/etc/e-smith/templates/etc/dl.php/50Database +++ b/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 +}