aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2017-11-30 11:16:00 +0100
committerMorris Jobke <hey@morrisjobke.de>2017-12-01 11:55:29 +0100
commit17c13e4436c44d7a6336d2c84be989cf5fd6df1b (patch)
tree1f346142a047752e16aafd6d86ce587352951600 /lib
parent8656462edb4ef21184ed4fe499246166a512e26a (diff)
downloadnextcloud-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.php5
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);