diff --git a/CHANGES b/CHANGES index 1bddd229f..afdaf580f 100644 --- a/CHANGES +++ b/CHANGES @@ -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 diff --git a/src/system.js b/src/system.js index dd492b5ba..694ac8a4a 100644 --- a/src/system.js +++ b/src/system.js @@ -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() {