mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-04 02:15:57 -05:00
Merge pull request #2707 from nzalev/add-serverupdate-versionarg
Add version arg to selfupdate console cmd
This commit is contained in:
commit
5e30048e6d
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…
x
Reference in New Issue
Block a user