Clearly mark message as an error

This commit is contained in:
Girish Ramakrishnan
2017-01-03 14:27:01 -08:00
parent af39c2c7ae
commit 8ffa951407
+2 -3
View File
@@ -20,13 +20,12 @@ readonly disk_size_gb=$(fdisk -l ${disk_device} | grep "Disk ${disk_device}" | a
# verify the system has minimum requirements met
if [[ "${physical_memory}" -lt "${MINIMUM_MEMORY}" ]]; then
echo "Minimum physical memory requirement: 1GB"
echo "Error: Cloudron requires atleast 1GB physical memory"
exit 1
fi
if [[ "${disk_size_gb}" -lt "${MINIMUM_DISK_SIZE_GB}" ]]; then
echo "Disk space on ${disk_device}: ${disk_size_gb}GB"
echo "Minimum disk size requirement: 20GB"
echo "Error: Cloudron requires atleast 20GB disk space (Disk space on ${disk_device} is ${disk_size_gb}GB)"
exit 1
fi