diff options
author | 2002-06-04 12:46:50 +0000 | |
---|---|---|
committer | 2002-06-04 12:46:50 +0000 | |
commit | 717e6ca504983354094079147314ff9376d99c10 (patch) | |
tree | 52d28a9203d2e38c22b54354f283f5fb2199ba1a /checksetup.pl | |
parent | Bug 144285 - checksetup.pl fails to set data dir (and other dir) (diff) | |
download | bugzilla-717e6ca504983354094079147314ff9376d99c10.tar.gz bugzilla-717e6ca504983354094079147314ff9376d99c10.tar.bz2 bugzilla-717e6ca504983354094079147314ff9376d99c10.zip |
Bug 143574 - taint errors with alternate formats. Also make data/template
writable for non webservergroup users.
r=myk, justdave
Diffstat (limited to 'checksetup.pl')
-rwxr-xr-x | checksetup.pl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/checksetup.pl b/checksetup.pl index 5e00092f2..97965408e 100755 --- a/checksetup.pl +++ b/checksetup.pl @@ -841,6 +841,8 @@ END if (-e 'data/template') { unless (-d 'data/template' && -e 'data/template/.lastRebuild' && (stat('data/template/.lastRebuild'))[9] >= $lastTemplateParamChange) { + print "Removing existing compiled templates ...\n"; + # If File::Path::rmtree reported errors, then I'd use that use File::Find; sub remove { @@ -904,6 +906,8 @@ END } { + print "Precompiling templates ...\n"; + use File::Find; use Cwd; @@ -1089,7 +1093,7 @@ if ($my_webservergroup) { my $gid = (split " ", $()[0]; fixPerms('.htaccess', $<, $gid, 022); # glob('*') doesn't catch dotfiles fixPerms('data/.htaccess', $<, $gid, 022); - fixPerms('data/template', $<, $gid, 022, 1); + fixPerms('data/template', $<, $gid, 000, 1); # webserver will write to these fixPerms('data/webdot/.htaccess', $<, $gid, 022); fixPerms('data/params', $<, $gid, 011); fixPerms('*', $<, $gid, 022); |