mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-14 00:04:59 -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': {
|
case 'serverupdate': {
|
||||||
r = 'Performing server update...';
|
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;
|
break;
|
||||||
}
|
}
|
||||||
case 'print': {
|
case 'print': {
|
||||||
|
Loading…
Reference in New Issue
Block a user