From 1b7dfd73afba20ccbd3b313d0f1bb678e60654d8 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 30 Nov 2017 11:16:00 +0100 Subject: Allow to skip data dir permission checks by config Enables installation on services that don't allow/support permission changes. Signed-off-by: Arthur Schiwon --- lib/private/legacy/util.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php index 3ce11746672..2fc6ba52d4e 100644 --- a/lib/private/legacy/util.php +++ b/lib/private/legacy/util.php @@ -979,8 +979,11 @@ class OC_Util { * @return array arrays with error messages and hints */ public static function checkDataDirectoryPermissions($dataDirectory) { + if(\OC::$server->getConfig()->getSystemValue('check_data_directory_permissions', true) === false) { + return []; + } $l = \OC::$server->getL10N('lib'); - $errors = array(); + $errors = []; $permissionsModHint = $l->t('Please change the permissions to 0770 so that the directory' . ' cannot be listed by other users.'); $perms = substr(decoct(@fileperms($dataDirectory)), -3); -- cgit v1.2.3