diff options
author | Michael Weimann <mail@michael-weimann.eu> | 2018-08-04 20:39:39 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-08-20 15:24:10 +0200 |
commit | c2fced446396dad822404f3fae3ccb1c7df0dc89 (patch) | |
tree | 0d6daa452cd69b27ae534adcd92499747cde7e00 /core | |
parent | 080572993e891a76721f4f7a7b76c85bc0e4c65d (diff) | |
download | nextcloud-server-c2fced446396dad822404f3fae3ccb1c7df0dc89.tar.gz nextcloud-server-c2fced446396dad822404f3fae3ccb1c7df0dc89.zip |
Adds a setup check for the memory limit
Signed-off-by: Michael Weimann <mail@michael-weimann.eu>
Diffstat (limited to 'core')
-rw-r--r-- | core/js/setupchecks.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js index 93072981e99..f7ee8c73c81 100644 --- a/core/js/setupchecks.js +++ b/core/js/setupchecks.js @@ -316,6 +316,15 @@ type: OC.SetupChecks.MESSAGE_TYPE_WARNING }); } + if (!data.isTheMemoryLimitHighEnough) { + messages.push({ + msg: t( + 'core', + 'The PHP memory limit is below the recommended value of 512MB.' + ), + type: OC.SetupChecks.MESSAGE_TYPE_WARNING + }) + } } else { messages.push({ msg: t('core', 'Error occurred while checking server setup'), |