diff options
author | Michael Weimann <mail@michael-weimann.eu> | 2018-08-20 20:46:11 +0200 |
---|---|---|
committer | Michael Weimann <mail@michael-weimann.eu> | 2018-08-20 20:46:23 +0200 |
commit | 2bab916c535173ac723f50fecb33518db3f293d5 (patch) | |
tree | 7496981d6756638837ef4c45e0c2e5691d4c32c2 /core/js/setupchecks.js | |
parent | ce1e213760a0ac03e91daf6ebc08f401da27b8bc (diff) | |
parent | 6d749bf0215c4f155d402620544e669c0cce37ec (diff) | |
download | nextcloud-server-2bab916c535173ac723f50fecb33518db3f293d5.tar.gz nextcloud-server-2bab916c535173ac723f50fecb33518db3f293d5.zip |
Adds license to files. Updates the branch.
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
Diffstat (limited to 'core/js/setupchecks.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 7dabefe9e8f..628606a9e5b 100644 --- a/core/js/setupchecks.js +++ b/core/js/setupchecks.js @@ -325,6 +325,23 @@ type: OC.SetupChecks.MESSAGE_TYPE_WARNING }) } + + if(data.appDirsWithDifferentOwner && 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'), |