Mercurial > hg > rc1
diff etc/debian-db-roundcube.php @ 38:ac106d4c8961 default tip
flip /etc/roundcube to point here
author | Charlie Root |
---|---|
date | Sat, 29 Dec 2018 05:39:53 -0500 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/etc/debian-db-roundcube.php Sat Dec 29 05:39:53 2018 -0500 @@ -0,0 +1,15 @@ +<?php +include_once("/etc/roundcube/debian-db.php"); + +switch ($dbtype) { + case "sqlite": + case "sqlite3": + $config['db_dsnw'] = "sqlite:///$basepath/$dbname?mode=0640"; + break; + default: + if ($dbport != '') $dbport=":$dbport"; + if ($dbserver == '') $dbserver="localhost"; + $config['db_dsnw'] = "$dbtype://$dbuser:$dbpass@$dbserver$dbport/$dbname"; + break; + } +?>