From: Thomas Mueller Date: Fri, 13 Jul 2012 11:25:43 +0000 (+0200) Subject: allow command line based installation/setup X-Git-Tag: v4.5.0beta1~74^2~371^2~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=967c6d7d3cfeb2f504ddc4301b902b39377c45fb;p=nextcloud-server.git allow command line based installation/setup --- diff --git a/lib/setup.php b/lib/setup.php index 2f73c486c9c..027c84db092 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -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(); }