diff --git a/src/cloudron.js b/src/cloudron.js index 750fb6695..0d3763f21 100644 --- a/src/cloudron.js +++ b/src/cloudron.js @@ -247,8 +247,9 @@ function checkUbuntuVersion(callback) { assert.strictEqual(typeof callback, 'function'); const isXenial = fs.readFileSync('/etc/lsb-release', 'utf-8').includes('16.04'); + if (!isXenial) return callback(); - if (isXenial) 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.', callback); + 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.', callback); } function getLogs(unit, options, callback) {