mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
Add version arg to selfupdate console cmd
This commit is contained in:
parent
914d2414b6
commit
f136593ccb
1 changed files with 9 additions and 1 deletions
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 a new issue