deprecate ubuntu 20.04 support

This commit is contained in:
Girish Ramakrishnan
2025-02-26 16:37:00 +01:00
parent 7b62c9e8a4
commit 558620cdfa
2 changed files with 6 additions and 4 deletions
+4 -3
View File
@@ -361,11 +361,12 @@ async function getUbuntuVersion() {
return release.match(/DISTRIB_DESCRIPTION="(.*)"/)[1];
}
// https://wiki.ubuntu.com/Releases
async function checkUbuntuVersion() {
const isBionic = fs.readFileSync('/etc/lsb-release', 'utf-8').includes('18.04');
if (!isBionic) return;
const isFocal = fs.readFileSync('/etc/lsb-release', 'utf-8').includes('20.04');
if (!isFocal) return;
await notifications.pin(notifications.TYPE_UPDATE_UBUNTU, 'Ubuntu upgrade required', 'Ubuntu 18.04 has reached end of life and will not receive security and maintenance updates. Please follow https://docs.cloudron.io/guides/upgrade-ubuntu-20/ to upgrade to Ubuntu 20 at the earliest.', {});
await notifications.pin(notifications.TYPE_UPDATE_UBUNTU, 'Ubuntu upgrade required', 'Ubuntu 20.04 is reaching end of life and will not receive security and maintenance updates. Please follow https://docs.cloudron.io/guides/upgrade-ubuntu-22/ to upgrade to Ubuntu 22.04 at the earliest.', {});
}
async function runSystemChecks() {