Merge pull request #8069 from JakubOnderka/security-audit-old-os

chg: [security] Warn about unsupported OS
pull/8099/head
Jakub Onderka 2021-12-30 16:40:34 +01:00 committed by GitHub
commit 03d8eb3d66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 7 deletions

View File

@ -439,19 +439,19 @@ class SecurityAudit
if ($linuxVersion) {
list($name, $version) = $linuxVersion;
if ($name === 'Ubuntu') {
if (in_array($version, ['14.04', '19.10'], true)) {
if (in_array($version, ['14.04', '16.04', '19.10', '20.10', '21.04'], true)) {
$output['System'][] = [
'warning',
__('You are using Ubuntu %s. This version doesn\'t receive security support anymore.', $version),
'https://endoflife.date/ubuntu',
];
} else if (in_array($version, ['16.04'], true)) {
$output['System'][] = [
'hint',
__('You are using Ubuntu %s. This version will be not supported after 02 Apr 2021.', $version),
'https://endoflife.date/ubuntu',
];
}
} else if ($name === 'CentOS Linux' && $version == 8) {
$output['System'][] = [
'warning',
__('You are using CentOS 8. This version doesn\'t receive security support anymore. Please migrate to CentOS 8 Stream.'),
'https://endoflife.date/centos',
];
}
}
}