From 87fb65097c079ef546b8df04f99703fdac963f00 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Sat, 20 Dec 2008 10:46:00 -0500
Subject: [PATCH] Add ispconfig port to firewall if port != 8080

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

diff --git a/server/plugins-available/apache2_plugin.inc.php b/server/plugins-available/apache2_plugin.inc.php
index ab01000..31e0a06 100644
--- a/server/plugins-available/apache2_plugin.inc.php
+++ b/server/plugins-available/apache2_plugin.inc.php
@@ -330,7 +330,7 @@
 						exec("cp /usr/local/ispconfig/server/conf/error/".substr(escapeshellcmd($conf["language"]),0,2)."/* ".$error_page_path);
 					}
 				}
-				exec("chmod -R +r ".$error_page_path);
+				exec("chmod -R a+r ".$error_page_path);
 			}
 
 			// copy the standard index page
@@ -348,7 +348,7 @@
 					exec("cp /usr/local/ispconfig/server/conf/index/.htaccess ".escapeshellcmd($data["new"]["document_root"])."/web/");
 				}
 			}
-			exec("chmod +r ".escapeshellcmd($data["new"]["document_root"])."/web");
+			exec("chmod -R a+r ".escapeshellcmd($data["new"]["document_root"])."/web/");
 		}
 		
 		// Create group and user, if not exist

--
Gitblit v1.9.1