From 28bf89bcd934de3141aabc17830b293de1457457 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Wed, 3 Mar 2010 18:14:44 +0000
Subject: [PATCH] - Added a robots.txt file in the root directory of the
 ispconfig interface to prevent it from being spidered by search engine robots
 that follow the robots excusion standard. - Fixed a error message in the
 installer.

---
 install/lib/installer_base.lib.php | 2 +-
 interface/web/robots.txt           | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)
 create mode 100644 interface/web/robots.txt

diff --git a/install/lib/installer_base.lib.php b/install/lib/installer_base.lib.php
index 2b6c055a5a..20eb61a1f7 100644
--- a/install/lib/installer_base.lib.php
+++ b/install/lib/installer_base.lib.php
@@ -1386,7 +1386,7 @@ class installer_base {
 		if(!is_file('/var/log/ispconfig/ispconfig.log')) exec('touch /var/log/ispconfig/ispconfig.log');
 		
 		exec('mv /usr/local/ispconfig/server/scripts/run-getmail.sh /usr/local/bin/run-getmail.sh');
-		exec('chown getmail /usr/local/bin/run-getmail.sh');
+		if(is_user('getmail')) exec('chown getmail /usr/local/bin/run-getmail.sh');
 		exec('chmod 744 /usr/local/bin/run-getmail.sh');
 		
 		
diff --git a/interface/web/robots.txt b/interface/web/robots.txt
new file mode 100644
index 0000000000..4e0bfc5496
--- /dev/null
+++ b/interface/web/robots.txt
@@ -0,0 +1,2 @@
+User-Agent: *
+Disallow: /
\ No newline at end of file
-- 
GitLab