File: dbconfig.template

package info (click to toggle)
request-tracker4 4.4.3-2%2Bdeb10u2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 43,364 kB
  • sloc: perl: 61,929; javascript: 22,938; sh: 1,084; makefile: 467; php: 15
file content (20 lines) | stat: -rw-r--r-- 675 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# THE DATABASE:
# generated by dbconfig-common

# map from dbconfig-common database types to their names as known by RT
my %typemap = (
    mysql   => 'mysql',
    pgsql   => 'Pg',
    sqlite3 => 'SQLite',
);
    
Set($DatabaseType, $typemap{_DBC_DBTYPE_} || "UNKNOWN");

Set($DatabaseHost, '_DBC_DBSERVER_');
Set($DatabasePort, '_DBC_DBPORT_');

Set($DatabaseUser , '_DBC_DBUSER_');
Set($DatabasePassword , '_DBC_DBPASS_');

# SQLite needs a special case, since $DatabaseName must be a full pathname
my $dbc_dbname = '_DBC_DBNAME_'; if ( "_DBC_DBTYPE_" eq "sqlite3" ) { Set ($DatabaseName, '_DBC_BASEPATH_' . '/' . $dbc_dbname); } else { Set ($DatabaseName, $dbc_dbname); }