]> git.donarmstrong.com Git - wannabuild.git/commitdiff
Buildd's should always connect to the priviliged service to allow them to update...
authorKurt Roeckx <kurt@roeckx.be>
Sun, 20 Sep 2009 21:27:00 +0000 (21:27 +0000)
committerKurt Roeckx <kurt@roeckx.be>
Sun, 20 Sep 2009 21:27:00 +0000 (21:27 +0000)
bin/wanna-build

index fd814fb6daf4c8c194614f6c1ed2ef7ef2be52f9..313bc0b7d490a773bfc657fdad4eea3e0d7e9cfe 100755 (executable)
@@ -302,7 +302,7 @@ END {
 }
 
 my $schema_suffix = '';
-if (isin( $op_mode, qw(list info)) && $distribution !~ /security/) {
+if (isin( $op_mode, qw(list info)) && $distribution !~ /security/ && !(not -t and $user =~ /-/)) {
        $dbh = DBI->connect("DBI:Pg:service=wanna-build") || 
                die "FATAL: Cannot open database: $DBI::errstr\n";
        $schema_suffix = '_public';