From dbae22d215d97573cc39cc98dd8220479b56ecb5 Mon Sep 17 00:00:00 2001
From: Dominik Mueller <info@profi-webdesign.net>
Date: Tue, 25 Feb 2014 16:28:25 -0500
Subject: [PATCH] Since chown and chgrp doesn't work recursively -> use parameters of mkdirpath instead

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

diff --git a/server/plugins-available/nginx_plugin.inc.php b/server/plugins-available/nginx_plugin.inc.php
index d7d1266..1a87891 100644
--- a/server/plugins-available/nginx_plugin.inc.php
+++ b/server/plugins-available/nginx_plugin.inc.php
@@ -2043,9 +2043,7 @@
 
 		//* Create the folder path, if it does not exist
 		if(!is_dir($folder_path)) {
-			$app->system->mkdirpath($folder_path);
-			$app->system->chown($folder_path, $website['system_user']);
-			$app->system->chgrp($folder_path, $website['system_group']);
+			$app->system->mkdirpath($folder_path, 0755, $website['system_user'], $website['system_group']);
 		}
 
 		//* Create empty .htpasswd file, if it does not exist

--
Gitblit v1.9.1