diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2017-11-30 11:16:00 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2017-12-01 11:55:29 +0100 |
commit | 17c13e4436c44d7a6336d2c84be989cf5fd6df1b (patch) | |
tree | 1f346142a047752e16aafd6d86ce587352951600 /lib | |
parent | 8656462edb4ef21184ed4fe499246166a512e26a (diff) | |
download | nextcloud-server-17c13e4436c44d7a6336d2c84be989cf5fd6df1b.tar.gz nextcloud-server-17c13e4436c44d7a6336d2c84be989cf5fd6df1b.zip |
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 <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/legacy/util.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/private/legacy/util.php b/lib/private/legacy/util.php index 18ba44ac204..d2dcbe4020f 100644 --- a/lib/private/legacy/util.php +++ b/lib/private/legacy/util.php @@ -959,8 +959,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); |