Changeset 1479 for trunk/locker/deploy/bin
- Timestamp:
- Feb 20, 2010, 4:31:08 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/locker/deploy/bin/turbogears
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/branches/locker-dev/locker/deploy/bin/turbogears merged eligible /branches/fc11-dev/locker/deploy/bin/turbogears 1121-1258
r1422 r1479 133 133 134 134 # Put in the sqldb 135 system(qw(sed -ri),'s/^sql(alchemy|object)\.dburi(.*)$/#sql\1.dburi\2\nsqlalchemy.dburi="mysql:\/\/' . uri_escape($sqluser) . ":" . uri_escape($sqlpass) . "\@$sqlhost\\/$sqldb\"/","$name/dev.cfg", "$name/sample-prod.cfg") == 0 or die "sed db failed!"; 135 if ($orm eq "sqlobject") { 136 my $uriuser = uri_escape($sqluser); 137 my $uripass = uri_escape($sqlpass); 138 foreach my $fil (("$name/dev.cfg", "$name/sample-prod.cfg")) 139 { 140 open my $in, '<', $fil or die "Can't read old file: $!"; 141 open my $out, '>', "$fil.new" or die "Can't write new file: $!"; 142 143 while (<$in>) { 144 s/^sqlobject\.dburi(.*)$/#sqlobject.dburi\2\nsqlobject.dburi="mysql:\/\/$uriuser:$uripass\@$sqlhost\/$sqldb"/; 145 print $out $_; 146 } 147 close $out; 148 rename "$fil.new", $fil 149 or die "Cannot rename: $!"; 150 } 151 } else { 152 system(qw(sed -ri),"s&^sql(alchemy|object)\.dburi(.*)\$&#sql\\1.dburi\\2\\nsql\\1.dburi=\"mysql://$sqlhost/$sqldb?read_default_file=~/.my.cnf\"&","$name/dev.cfg", "$name/sample-prod.cfg") == 0 or die "sed db failed!"; 153 } 136 154 system(qw(sed -ri),'s/^#? *autoreload\.on.*$/autoreload.on = False # breaks the scripts flup setup/',"$name/dev.cfg") == 0 or die "sed autoreload failed!"; 137 155 my $addrendescsl = $addrend; -
Property
svn:mergeinfo
set to
(toggle deleted branches)
Note: See TracChangeset
for help on using the changeset viewer.