diff options
Diffstat (limited to 'lib/setup.php')
-rw-r--r-- | lib/setup.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/setup.php b/lib/setup.php index afe56126277..9bb6e2df513 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -284,8 +284,10 @@ class OC_Setup { $content.= "Options -Indexes\n"; @file_put_contents($SERVERROOT.'/.htaccess', $content); //supress errors in case we don't have permissions for it - $content = "deny from all"; + $content = "deny from all\n"; + $content.= "IndexIgnore *"; file_put_contents(OC_Config::getValue('datadirectory', $SERVERROOT.'/data').'/.htaccess', $content); + file_put_contents(OC_Config::getValue('datadirectory', $SERVERROOT.'/data').'/index.html', ''); } } |