deprecate ubuntu 20.04 support
This commit is contained in:
@@ -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
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user