addons: optional start mongodb based on AVX

This commit is contained in:
Girish Ramakrishnan
2024-03-30 18:31:57 +01:00
parent 6bd9391160
commit 774f14327c
4 changed files with 40 additions and 2 deletions

View File

@@ -206,7 +206,8 @@ else
version="${requestedVersion}"
fi
if vergte "${version}" "7.5.99"; then
# 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
echo "Cloudron version ${version} requires AVX support in the CPU. No avx found in /proc/cpuinfo"
exit 1