summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-06-25 02:17:52 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-06-25 02:17:52 +0200
commited5c3b391a381d363e1b9070554d11c2b4881e3f (patch)
tree894226b3b41e7eab3b3790fb2951148f70fca8ae /extensions
parent92adf6a5440fc9cb85ee3a60c1ece6c01bcffbaa (diff)
downloadbugzilla-ed5c3b391a381d363e1b9070554d11c2b4881e3f.tar.gz
bugzilla-ed5c3b391a381d363e1b9070554d11c2b4881e3f.tar.xz
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)
Diffstat (limited to 'extensions')
-rwxr-xr-xextensions/create.pl3
1 files changed, 2 insertions, 1 deletions
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",
);