Update ubuntu check to bionic
This commit is contained in:
+3
-3
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user