Clearly mark message as an error
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user