One zero to many in the memory requirements for swap space

This commit is contained in:
Michael Kroes 2016-03-14 11:26:30 +01:00
parent 8e31bed47d
commit 326cb96799
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ source setup/functions.sh # load our functions
SWAP_MOUNTED=$(grep "swap" /proc/mounts) SWAP_MOUNTED=$(grep "swap" /proc/mounts)
TOTAL_PHYSICAL_MEM=$(head -n 1 /proc/meminfo | awk '{print $2}') TOTAL_PHYSICAL_MEM=$(head -n 1 /proc/meminfo | awk '{print $2}')
if [ $TOTAL_PHYSICAL_MEM -lt 19000000 ]; then if [ $TOTAL_PHYSICAL_MEM -lt 1900000 ]; then
if [ -z "$SWAP_MOUNTED" ]; then if [ -z "$SWAP_MOUNTED" ]; then
if [ ! -e /swapfile ]; then if [ ! -e /swapfile ]; then
echo "Adding swap to the system..." echo "Adding swap to the system..."