add missing callback

This commit is contained in:
Girish Ramakrishnan
2021-05-18 14:49:15 -07:00
parent 91df8df92d
commit 449d6b2de4

View File

@@ -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) {