summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
authorDylan William Hardison <dylan@hardison.net>2018-03-16 17:53:01 +0100
committerGitHub <noreply@github.com>2018-03-16 17:53:01 +0100
commit6353a89495e1a6e68bc9e09a771bb879531f510f (patch)
tree7da012c60016b9603b42dc43665741833feaaf2a /Bugzilla
parent973b61c083c83927b552c8985c1d8febe6847f72 (diff)
downloadbugzilla-6353a89495e1a6e68bc9e09a771bb879531f510f.tar.gz
bugzilla-6353a89495e1a6e68bc9e09a771bb879531f510f.tar.xz
Bug 1446156 - mkdir template_cache: Permission denied
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/Template.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 7a97f6da2..ae4f9bbad 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -1074,6 +1074,8 @@ our %_templates_to_precompile;
sub precompile_templates {
my ($output) = @_;
+ return unless is_webserver_group();
+
# Remove the compiled templates.
my $cache_dir = bz_locations()->{'template_cache'};
my $datadir = bz_locations()->{'datadir'};