Apache-SWIT
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/Apache/SWIT/Maker/Makefile.pm view on Meta::CPAN
my ($class, $from, $to) = @_;
mkpath("$to/conf");
my $from_ap = abs_path($from);
my $to_ap = abs_path($to);
$_ = read_file("$from_ap/conf/httpd.conf");
s#$from_ap#$to_ap#g;
conv_forced_write_file("$to_ap/conf/httpd.conf", "PerlSetEnv "
. "APACHE_SWIT_DB_NAME $ENV{APACHE_SWIT_DB_NAME}\n$_");
}
sub update_db_schema {
my ($class, $to) = @_;
if (!$ENV{APACHE_SWIT_DB_NAME} && -f "$to/conf/httpd.conf") {
my @lines = read_file("$to/conf/httpd.conf");
($ENV{APACHE_SWIT_DB_NAME}) = ($lines[0]
=~ /PerlSetEnv APACHE_SWIT_DB_NAME (\w+)/);
}
confess "No APACHE_SWIT_DB_NAME given" unless $ENV{APACHE_SWIT_DB_NAME};
push @INC, "t", "blib/lib";
# become_postgres_user changes uid of the process. We will not be
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.229 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )