RT-Extension-Nginx
view release on metacpan or search on metacpan
inc/Module/Install/RTx.pm view on Meta::CPAN
}
my $postamble = << ".";
install ::
\t\$(NOECHO) \$(PERL) -MExtUtils::Install -e \"install({$args})\"
.
if ( $subdirs{var} and -d $RT::MasonDataDir ) {
my ( $uid, $gid ) = ( stat($RT::MasonDataDir) )[ 4, 5 ];
$postamble .= << ".";
\t\$(NOECHO) chown -R $uid:$gid $path{var}
.
}
my %has_etc;
if ( File::Glob::bsd_glob("$FindBin::Bin/etc/schema.*") ) {
$has_etc{schema}++;
}
if ( File::Glob::bsd_glob("$FindBin::Bin/etc/acl.*") ) {
$has_etc{acl}++;
}
lib/RT/Extension/Nginx.pm view on Meta::CPAN
sub SetupRights {
my $self = shift;
my ($wuid, $wgid) = ( ($self->GetWebUser)[0], ($self->GetWebGroup)[0] );
my ($rtuid, $rtgid) = (stat $RT::EtcPath)[4, 5];
my $root = $self->RootPath;
chmod 0400, map File::Spec->catfile($root, $_), $self->Templates;
chown $rtuid, $rtgid, map File::Spec->catfile($root, $_), $self->Templates;
chmod 0770, $self->FcgiTempPath, $self->FcgiStoragePath;
chown $wuid, $wgid, $self->FcgiTempPath, $self->FcgiStoragePath;
chmod 0755, $self->RootPath;
chown $rtuid, $rtgid, $self->RootPath;
}
sub Templates {
return qw(nginx.conf rt.server.conf fcgi.include.conf mime.types);
}
sub FindExecutable {
my $self = shift;
my $name = shift;
( run in 2.683 seconds using v1.01-cache-2.11-cpan-71847e10f99 )