Update ubuntu check to bionic

This commit is contained in:
Girish Ramakrishnan
2024-12-11 15:03:59 +01:00
parent 6993cbeb9f
commit 6141db8f34
+3 -3
View File
@@ -362,10 +362,10 @@ async function getUbuntuVersion() {
}
async function checkUbuntuVersion() {
const isXenial = fs.readFileSync('/etc/lsb-release', 'utf-8').includes('16.04');
if (!isXenial) return;
const isBionic = fs.readFileSync('/etc/lsb-release', 'utf-8').includes('18.04');
if (!isBionic) return;
await notifications.alert(notifications.ALERT_UPDATE_UBUNTU, 'Ubuntu upgrade required', 'Ubuntu 16.04 has reached end of life and will not receive security and maintenance updates. Please follow https://docs.cloudron.io/guides/upgrade-ubuntu-18/ to upgrade to Ubuntu 18 at the earliest.', { persist: true });
await notifications.alert(notifications.ALERT_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 18 at the earliest.', { persist: true });
}
async function runSystemChecks() {