From b2e60e365dde53e405cb4a1fe9be687d33ec08ef Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Thu, 9 Aug 2018 19:47:55 +0200 Subject: Adds a setup check for app directory permissions. Signed-off-by: Michael Weimann --- core/js/setupchecks.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'core/js') diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js index 93072981e99..13e351445e9 100644 --- a/core/js/setupchecks.js +++ b/core/js/setupchecks.js @@ -316,6 +316,23 @@ type: OC.SetupChecks.MESSAGE_TYPE_WARNING }); } + + if(data.appDirsWithDifferentOwner.length > 0) { + var appDirsWithDifferentOwner = data.appDirsWithDifferentOwner.reduce( + function(appDirsWithDifferentOwner, directory) { + return appDirsWithDifferentOwner + '
  • ' + directory + '
  • '; + }, + '' + ); + messages.push({ + msg: t('core', 'Some app directories are owned by a different user than the web server one. ' + + 'This may be the case if apps have been installed manually. ' + + 'Check the permissions of the following app directories:') + + '', + type: OC.SetupChecks.MESSAGE_TYPE_WARNING + }); + } + } else { messages.push({ msg: t('core', 'Error occurred while checking server setup'), -- cgit v1.2.3