]> source.dussan.org Git - nextcloud-server.git/commitdiff
allow command line based installation/setup
authorThomas Mueller <thomas.mueller@tmit.eu>
Fri, 13 Jul 2012 11:25:43 +0000 (13:25 +0200)
committerThomas Mueller <thomas.mueller@tmit.eu>
Fri, 13 Jul 2012 11:25:43 +0000 (13:25 +0200)
lib/setup.php

index 2f73c486c9c08cd513a3332f6aa89e98f1f83bfb..027c84db0921fa1c1c4d37ca1bd5c6404027f477 100644 (file)
@@ -257,7 +257,7 @@ class OC_Setup {
                                OC_Installer::installShippedApps();
 
                                //create htaccess files for apache hosts
-                               if (strstr($_SERVER['SERVER_SOFTWARE'], 'Apache')) {
+                               if (isset($_SERVER['SERVER_SOFTWARE']) && strstr($_SERVER['SERVER_SOFTWARE'], 'Apache')) {
                                        self::createHtaccess();
                                }