From c6fb15efc6cca3bbb599b66715285327a220a9b0 Mon Sep 17 00:00:00 2001
From: Michael Seevogel <git_projects@michaelseevogel.de>
Date: Mon, 20 Nov 2017 15:57:36 +0100
Subject: [PATCH] restore fpm_group owner-ship for non-Red-Hat users

---
 server/plugins-available/nginx_plugin.inc.php | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/server/plugins-available/nginx_plugin.inc.php b/server/plugins-available/nginx_plugin.inc.php
index 48cc8dbf0b..1e89f5fa64 100644
--- a/server/plugins-available/nginx_plugin.inc.php
+++ b/server/plugins-available/nginx_plugin.inc.php
@@ -2663,15 +2663,13 @@ class nginx_plugin {
 				unset($tmp);
 			} elseif(!file_exists($rh_file)) {
 				//OS seems to be not Red Hat'ish
-				$tpl->setVar('fpm_group', $web_config['group']);
+				$tpl->setVar('fpm_group', $data['new']['system_group']);
 				$tpl->setVar('fpm_listen_group', $web_config['group']);
 			}
 			break;
 		}
 		
-		// $tpl->setVar('fpm_group', $web_config['group']);
 		$tpl->setVar('fpm_listen_user', $data['new']['system_user']);
-		$tpl->setVar('fpm_listen_group', $web_config['group']);
 		$tpl->setVar('fpm_domain', $data['new']['domain']);
 		$tpl->setVar('pm', $data['new']['pm']);
 		$tpl->setVar('pm_max_children', $data['new']['pm_max_children']);
-- 
GitLab