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
+2 -1
View File
@@ -2911,7 +2911,7 @@
* cloudron-support: add helper function to free up disk space when full
* cloudflare: list API does not return `zone_id` anymore
[8.3.0]
[9.0.0]
* UI redesign
* notifications: email notification when server reboot is required
* notifications: email notification when cloudron update failed
@@ -2920,4 +2920,5 @@
* s3: automatically abort old multipart uploads
* notifications: validate domains configs
* ldap: automatically detect pagination support
* ubuntu: alert for 20.04 support being deprecated
+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() {