Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/vm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDaniel Hansson <daniel@techandme.se>2017-06-05 21:04:52 +0300
committerGitHub <noreply@github.com>2017-06-05 21:04:52 +0300
commit671f71c7a0f3e7663244d9986d89ce578adaadc1 (patch)
tree6efb6fb7c57d7b8fdb0c8b6a151af1deb7c81c3e /apps
parentf90ad913da815a4531d0aeeb18e48b0989f874d5 (diff)
check available RAM (#251)
Diffstat (limited to 'apps')
-rw-r--r--apps/onlyoffice.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/onlyoffice.sh b/apps/onlyoffice.sh
index dc8ff24f..03903dd3 100644
--- a/apps/onlyoffice.sh
+++ b/apps/onlyoffice.sh
@@ -20,6 +20,14 @@ then
exit 1
fi
+# Check configured RAM (needs at least 4 GB)
+if [ "$(awk '/MemTotal/{print $2}' /proc/meminfo)" -lt "4194304" ]
+then
+ echo "You need at least 4 GB RAM for OnlyOffice"
+ sleep 3
+ exit 1
+fi
+
# Check if Collabora is running
if [ -d "$NCPATH"/apps/richdocuments ]
then