Server self-update correctly not allowed when running as Windows Service.

This commit is contained in:
Ylian Saint-Hilaire
2019-07-18 13:11:08 -07:00
parent b088d80250
commit c2844f65d1
3 changed files with 18 additions and 42 deletions

View File

@@ -611,7 +611,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
}
case 'serverupdate': {
r = 'Performing server update...';
parent.parent.performServerUpdate();
if (parent.parent.performServerUpdate() == false) { r = 'Server self-update not possible.'; }
break;
}
case 'print': {