]> source.dussan.org Git - nextcloud-server.git/commitdiff
Disallow Windows Server in Server Check
authorLukas Reschke <lukas@owncloud.com>
Thu, 26 Feb 2015 13:24:40 +0000 (14:24 +0100)
committerLukas Reschke <lukas@owncloud.com>
Thu, 9 Apr 2015 13:56:37 +0000 (15:56 +0200)
Will prevent users from use ownCloud on Windows Server :see_no_evil:

lib/private/util.php

index 3fd0f844684752b68e0889332af3a6d76149fafa..102dc8c59db357c89953a58706b6d759d819bcec 100644 (file)
@@ -566,6 +566,19 @@ class OC_Util {
                        $webServerRestart = true;
                }
 
+               // Check if server running on Windows platform
+               if(OC_Util::runningOnWindows()) {
+                       $errors[] = [
+                               'error' => $l->t('Microsoft Windows Platform is not supported'),
+                               'hint' => $l->t('Running ownCloud Server on the Microsoft Windows platform is not supported. We suggest you ' .
+                                       'use a Linux server in a virtual machine if you have no option for migrating the server itself. ' .
+                                       'Find Linux packages as well as easy to deploy virtual machine images on <a href="%s">%s</a>. ' .
+                                       'For migrating existing installations to Linux you can find some tips and a migration script ' .
+                                       'in <a href="%s">our documentation</a>.',
+                                       ['https://owncloud.org/install/', 'owncloud.org/install/', 'https://owncloud.org/?p=8045'])
+                       ];
+               }
+
                // Check if config folder is writable.
                if (!is_writable(OC::$configDir) or !is_readable(OC::$configDir)) {
                        $errors[] = array(