mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-12 23:43:20 -05:00
Add version arg to selfupdate console cmd
This commit is contained in:
parent
914d2414b6
commit
f136593ccb
10
meshuser.js
10
meshuser.js
@ -1188,7 +1188,15 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use
|
||||
}
|
||||
case 'serverupdate': {
|
||||
r = 'Performing server update...';
|
||||
if (parent.parent.performServerUpdate() == false) { r = 'Server self-update not possible.'; }
|
||||
var version = null;
|
||||
|
||||
if (cmdargs['_'].length > 0) {
|
||||
version = cmdargs['_'][0];
|
||||
}
|
||||
|
||||
if (parent.parent.performServerUpdate(version) == false) {
|
||||
r = 'Server self-update not possible.';
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'print': {
|
||||
|
Loading…
Reference in New Issue
Block a user