From 8bd82b96f3d9d2c6c8ec02922e2437c6cea02ff4 Mon Sep 17 00:00:00 2001 From: Bartek Przybylski Date: Mon, 8 Aug 2011 21:41:20 +0200 Subject: [PATCH] checking for apache server in setup --- lib/setup.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/setup.php b/lib/setup.php index f87581d758..04a65d0126 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);