diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-02-26 14:24:40 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-04-09 15:56:37 +0200 |
commit | 0abce86b31b80162a32d460674a44d8d8a78b2b4 (patch) | |
tree | dc70a6c0b8e44c7ff5b928468a69130628c7d942 /lib/private | |
parent | 1d9bd3d31e26d7a43940e0048199ea86a621cc57 (diff) | |
download | nextcloud-server-0abce86b31b80162a32d460674a44d8d8a78b2b4.tar.gz nextcloud-server-0abce86b31b80162a32d460674a44d8d8a78b2b4.zip |
Disallow Windows Server in Server Check
Will prevent users from use ownCloud on Windows Server :see_no_evil:
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/util.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/private/util.php b/lib/private/util.php index 3fd0f844684..102dc8c59db 100644 --- a/lib/private/util.php +++ b/lib/private/util.php @@ -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( |