- Timestamp:
- Mar 25, 2008, 2:15:21 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
locker/deploy/bin/trac
r700 r701 6 6 use File::Path; 7 7 use URI::Escape; 8 use DBI; 9 use Config::IniFiles; 8 10 9 11 setup(); … … 13 15 my $name=<STDIN>; 14 16 chomp($name); 17 18 my $dbh = DBI->connect("DBI:mysql:database=$sqldb;host=$sqlhost", $sqluser, $sqlpass, {RaiseError => 1}); 19 $dbh->do('alter database collate utf8_general_ci'); 15 20 16 21 my $dbstring = "mysql://" . uri_escape($sqluser) . ":" . uri_escape($sqlpass) . "\@$sqlhost/$sqldb"; … … 43 48 close IN; close OUT; 44 49 50 my $cfg = Config::IniFiles->new(-file => 'tracdata/conf/trac.ini'); 51 $cfg->setval('trac', 'default_charset', 'utf-8'); 52 $cfg->AddSection('components'); 53 $cfg->newval('components', 'webadmin.*', 'enabled'); 54 $cfg->RewriteConfig(); 55 56 system(qw(/usr/bin/trac-admin tracdata permission add), $human, 'TRAC_ADMIN'); 57 45 58 chmod 0777, '.htaccess'; 46 59 unlink '.htaccess.in';
Note: See TracChangeset
for help on using the changeset viewer.