Etherpad needs quite a lot of RAM

This commit is contained in:
Bob Mottram 2017-06-07 19:36:11 +01:00
parent ce466d8c94
commit 96b4ad2f36
1 changed files with 7 additions and 0 deletions

View File

@ -444,6 +444,13 @@ function install_etherpad {
exit 7359
fi
# Check the amount of RAM
ram_available=$(grep MemTotal /proc/meminfo | awk '{print $2}')
if [ $ram_available -lt 2000000 ]; then
echo $'Need at least 2GB RAM to install etherpad'
exit 783524
fi
if [ -f $IMAGE_PASSWORD_FILE ]; then
ETHERPAD_ADMIN_PASSWORD="$(printf `cat $IMAGE_PASSWORD_FILE`)"
else