From dad304a4d722965f122acaa54fe7895e6f3b6ae2 Mon Sep 17 00:00:00 2001
From: Florian Schaal <info@schaal-24.de>
Date: Fri, 24 Feb 2017 16:00:01 +0100
Subject: [PATCH] Chmod the files and directories in the acme dir with nginx
 installed

---
 install/lib/installer_base.lib.php | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php
index f193c7d534..19ce6cadf8 100644
--- a/install/lib/installer_base.lib.php
+++ b/install/lib/installer_base.lib.php
@@ -2340,6 +2340,12 @@ class installer_base {
 		//* chown the interface files to the ispconfig user and group
 		$command = 'chown -R ispconfig:ispconfig '.$install_dir.'/interface';
 		caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
+
+		//* Chmod the files and directories in the acme dir with nginx installed
+		if($conf['nginx']['installed'] == true) {
+			$command = 'chmod -R 755 '.$install_dir.'/interface/acme';
+			caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
+		}
 		
 		//* chown the server files to the root user and group
 		$command = 'chown -R root:root '.$install_dir.'/server';
-- 
GitLab