From 34249adbad14608948a0bf1f881e7d718d9d4da1 Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Fri, 16 Mar 2018 12:53:01 -0400 Subject: Bug 1446156 - mkdir template_cache: Permission denied --- Bugzilla/Template.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Bugzilla/Template.pm') 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'}; -- cgit v1.2.3-24-g4f1b