deprecate ubuntu 20.04 support
This commit is contained in:
+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