Skip to content

Commit 28bf89b

Browse files
committed
- 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.
1 parent e9e224a commit 28bf89b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

install/lib/installer_base.lib.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ public function install_ispconfig()
13861386
if(!is_file('/var/log/ispconfig/ispconfig.log')) exec('touch /var/log/ispconfig/ispconfig.log');
13871387

13881388
exec('mv /usr/local/ispconfig/server/scripts/run-getmail.sh /usr/local/bin/run-getmail.sh');
1389-
exec('chown getmail /usr/local/bin/run-getmail.sh');
1389+
if(is_user('getmail')) exec('chown getmail /usr/local/bin/run-getmail.sh');
13901390
exec('chmod 744 /usr/local/bin/run-getmail.sh');
13911391

13921392

interface/web/robots.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-Agent: *
2+
Disallow: /

0 commit comments

Comments
 (0)