annotate etc/debian-db-roundcube.php @ 43:771f6803cc4b default tip

somehow lost the correctly updated metadata so e.g. 'mail' package wasn't being imported
author Charlie Root
date Sun, 26 Jan 2025 13:13:49 -0500
parents ac106d4c8961
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
38
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
1 <?php
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
2 include_once("/etc/roundcube/debian-db.php");
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
3
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
4 switch ($dbtype) {
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
5 case "sqlite":
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
6 case "sqlite3":
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
7 $config['db_dsnw'] = "sqlite:///$basepath/$dbname?mode=0640";
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
8 break;
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
9 default:
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
10 if ($dbport != '') $dbport=":$dbport";
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
11 if ($dbserver == '') $dbserver="localhost";
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
12 $config['db_dsnw'] = "$dbtype://$dbuser:$dbpass@$dbserver$dbport/$dbname";
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
13 break;
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
14 }
ac106d4c8961 flip /etc/roundcube to point here
Charlie Root
parents:
diff changeset
15 ?>