cloudron-setup: add warning when installing with no avx
This commit is contained in:
@@ -28,6 +28,7 @@ readonly disk_size_gb=$((${disk_size_bytes}/1024/1024))
|
||||
|
||||
readonly RED='\033[31m'
|
||||
readonly GREEN='\033[32m'
|
||||
readonly YELLOW='\033[33m'
|
||||
readonly DONE='\033[m'
|
||||
|
||||
# verify the system has minimum requirements met
|
||||
@@ -207,10 +208,12 @@ else
|
||||
fi
|
||||
|
||||
# 7.6 dropped support for CPUs lacking AVX but this came back in 8.0
|
||||
if vergte "${version}" "7.5.99" && vergte "7.8.0" "${version}"; then
|
||||
if ! grep -q avx /proc/cpuinfo; then
|
||||
if ! grep -q avx /proc/cpuinfo; then
|
||||
if vergte "${version}" "7.5.99" && vergte "7.8.0" "${version}"; then
|
||||
echo "Cloudron version ${version} requires AVX support in the CPU. No avx found in /proc/cpuinfo"
|
||||
exit 1
|
||||
else
|
||||
echo " ${YELLOW}CPU has no AVX support. MongoDB will be disabled${DONE}"
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user