diff options
author | Daniel Hansson <daniel@techandme.se> | 2017-06-05 21:04:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-05 21:04:52 +0300 |
commit | 671f71c7a0f3e7663244d9986d89ce578adaadc1 (patch) | |
tree | 6efb6fb7c57d7b8fdb0c8b6a151af1deb7c81c3e /apps | |
parent | f90ad913da815a4531d0aeeb18e48b0989f874d5 (diff) |
check available RAM (#251)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/onlyoffice.sh | 8 |
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 |