RAM limit to 502Mb to meet EC2 & Vultr 512Mb inst. (#1560)

AS told here: https://github.com/mail-in-a-box/mailinabox/pull/1534
This commit is contained in:
just4t 2019-04-14 22:33:50 +02:00 committed by Joshua Tauberer
parent 9b46637aff
commit 25fec63a03
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ fi
#
# Skip the check if we appear to be running inside of Vagrant, because that's really just for testing.
TOTAL_PHYSICAL_MEM=$(head -n 1 /proc/meminfo | awk '{print $2}')
if [ $TOTAL_PHYSICAL_MEM -lt 500000 ]; then
if [ $TOTAL_PHYSICAL_MEM -lt 490000 ]; then
if [ ! -d /vagrant ]; then
TOTAL_PHYSICAL_MEM=$(expr \( \( $TOTAL_PHYSICAL_MEM \* 1024 \) / 1000 \) / 1000)
echo "Your Mail-in-a-Box needs more memory (RAM) to function properly."