summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/setup.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/setup.php b/lib/setup.php
index f87581d7582..04a65d01265 100644
--- a/lib/setup.php
+++ b/lib/setup.php
@@ -224,7 +224,9 @@ class OC_Setup {
OC_Installer::installShippedApps(true);
//create htaccess files for apache hosts
- self::createHtaccess(); //TODO detect if apache is used
+ if (strstr($_SERVER['SERVER_SOFTWARE'], 'Apache')) {
+ self::createHtaccess();
+ }
//and we are done
OC_Config::setValue('installed', true);