add missing callback
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user