From ed5c3b391a381d363e1b9070554d11c2b4881e3f Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Thu, 24 Jun 2010 17:17:52 -0700 Subject: Bug 457373: Refactor the permissions system in Bugzilla::Install::Filesystem to use constants instead of local variables. Also, change the permissions so that they are stricter in general, and work better under suexec. This also fixes the problem that dependency graphs didn't work under suexec, and adds a "web" directory by default to Extensions created with extension/create.pl. r=mkanat, a=mkanat (module owner) --- extensions/create.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'extensions') diff --git a/extensions/create.pl b/extensions/create.pl index c4d911c2a..1b54e6b33 100755 --- a/extensions/create.pl +++ b/extensions/create.pl @@ -41,7 +41,7 @@ mkpath($extension_dir) || die "$extension_dir already exists or cannot be created.\n"; my $lcname = lc($name); -foreach my $path (qw(lib template/en/default/hook), +foreach my $path (qw(lib web template/en/default/hook), "template/en/default/$lcname") { mkpath("$extension_dir/$path") || die "$extension_dir/$path: $!"; @@ -55,6 +55,7 @@ my %create_files = ( 'config.pm.tmpl' => 'Config.pm', 'extension.pm.tmpl' => 'Extension.pm', 'util.pm.tmpl' => 'lib/Util.pm', + 'web-readme.txt.tmpl' => 'web/README', 'hook-readme.txt.tmpl' => 'template/en/default/hook/README', 'name-readme.txt.tmpl' => "template/en/default/$lcname/README", ); -- cgit v1.2.3-24-g4f1b