diff options
author | Michael Weimann <mail@michael-weimann.eu> | 2018-08-09 19:47:55 +0200 |
---|---|---|
committer | Michael Weimann <mail@michael-weimann.eu> | 2018-08-09 19:47:55 +0200 |
commit | b2e60e365dde53e405cb4a1fe9be687d33ec08ef (patch) | |
tree | 23ce15eb707048128a7bb2b7665156a8820d59a9 /core/js | |
parent | 46d340045da005547a03c9382c98610942dfac1f (diff) | |
download | nextcloud-server-b2e60e365dde53e405cb4a1fe9be687d33ec08ef.tar.gz nextcloud-server-b2e60e365dde53e405cb4a1fe9be687d33ec08ef.zip |
Adds a setup check for app directory permissions.
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/setupchecks.js | 17 |
1 files changed, 17 insertions, 0 deletions
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 + '<li>' + directory + '</li>'; + }, + '' + ); + 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:') + + '<ul>' + appDirsWithDifferentOwner + '</ul>', + type: OC.SetupChecks.MESSAGE_TYPE_WARNING + }); + } + } else { messages.push({ msg: t('core', 'Error occurred while checking server setup'), |