cloudron-setup: add AVX check for 7.6 and beyond
This commit is contained in:
+1
-1
@@ -194,7 +194,7 @@ async function canUpdate(boxUpdateInfo) {
|
||||
if (!ubuntuVersion) throw new BoxError(BoxError.INTERNAL_ERROR, 'Could not determine ubuntu release');
|
||||
if (ubuntuVersion.trim() === '18.04' && semver.gte(boxUpdateInfo.version, '7.5.0')) throw new BoxError(BoxError.BAD_STATE, `${boxUpdateInfo.version} requires atleast Ubuntu 20.04. Please upgrade following https://docs.cloudron.io/guides/upgrade-ubuntu-20/`);
|
||||
|
||||
// mongodb 6 requires AVX
|
||||
// mongodb 5 requires AVX
|
||||
if (semver.gte(boxUpdateInfo.version, '7.6.0')) {
|
||||
const avxOutput = safe.child_process.execSync('grep avx /proc/cpuinfo', { encoding: 'utf8' });
|
||||
if (avxOutput === null) throw new BoxError(BoxError.BAD_STATE, `${boxUpdateInfo.version} requires AVX support`);
|
||||
|
||||
Reference in New Issue
Block a user