]> source.dussan.org Git - nextcloud-server.git/commitdiff
checking for apache server in setup
authorBartek Przybylski <bart.p.pl@gmail.com>
Mon, 8 Aug 2011 19:41:20 +0000 (21:41 +0200)
committerBartek Przybylski <bart.p.pl@gmail.com>
Mon, 8 Aug 2011 19:41:20 +0000 (21:41 +0200)
lib/setup.php

index f87581d75827cda77cb54ad5fae321175b087584..04a65d0126542f63afc1b4941413f0c9d897db8e 100644 (file)
@@ -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);