Check for 19GB instead of 20GB in cloudron-setup
This is as reporting the disk size may vary from the one selected when creating the server. Eg EC2 20GB storage results in 21474836480 bytes which in turn will be calculated as less than 20GB in the script
This commit is contained in:
@@ -9,8 +9,8 @@ fi
|
||||
|
||||
# change this to a hash when we make a upgrade release
|
||||
readonly LOG_FILE="/var/log/cloudron-setup.log"
|
||||
readonly MINIMUM_DISK_SIZE_GB="20" # this is the size of "/" and required to fit in docker images
|
||||
readonly MINIMUM_MEMORY="990" # this is mostly reported for 1GB main memory (DO 992, EC2 990)
|
||||
readonly MINIMUM_DISK_SIZE_GB="19" # this is the size of "/" and required to fit in docker images 19 is a safe bet for different reporting on 20GB min
|
||||
readonly MINIMUM_MEMORY="990" # this is mostly reported for 1GB main memory (DO 992, EC2 990)
|
||||
|
||||
# copied from cloudron-resize-fs.sh
|
||||
readonly physical_memory=$(free -m | awk '/Mem:/ { print $2 }')
|
||||
|
||||
Reference in New Issue
Block a user