From d39b018893c3ed9c85724cbaa7b7e2077d80800f Mon Sep 17 00:00:00 2001
From: Morris Jobke <hey@morrisjobke.de>
Date: Wed, 9 Dec 2015 10:49:54 +0100
Subject: [PATCH] Allow occ install on OS X - same behaviour as web setup

---
 core/command/maintenance/install.php | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/core/command/maintenance/install.php b/core/command/maintenance/install.php
index b0235c518ec..d4ef72c9fc8 100644
--- a/core/command/maintenance/install.php
+++ b/core/command/maintenance/install.php
@@ -68,7 +68,12 @@ class Install extends Command {
 		$errors = $sysInfo['errors'];
 		if (count($errors) > 0) {
 			$this->printErrors($output, $errors);
-			return 1;
+
+			// ignore the OS X setup warning
+			if(count($errors) !== 1 ||
+				(string)($errors[0]['error']) !== 'Mac OS X is not supported and ownCloud will not work properly on this platform. Use it at your own risk! ') {
+				return 1;
+			}
 		}
 
 		// validate user input
-- 
GitLab