diff --git a/agents/meshinstall-linux.js b/agents/meshinstall-linux.js index a41d23e2..5aa37c9a 100644 --- a/agents/meshinstall-linux.js +++ b/agents/meshinstall-linux.js @@ -14,7 +14,9 @@ See the License for the specific language governing permissions and limitations under the License. */ -var s = null, msh = {}, buttons = ['Cancel'], skip = false; +// The folloing line just below with 'msh=' needs to stay exactly like this since MeshCentral will replace it with the correct settings. +var msh = {}; +var s = null, buttons = ['Cancel'], skip = false; try { s = require('service-manager').manager.getService('meshagent'); } catch (e) { } function _install(parms) { diff --git a/meshuser.js b/meshuser.js index 4a047f93..d4548252 100644 --- a/meshuser.js +++ b/meshuser.js @@ -4468,9 +4468,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use break; } case 'createDeviceShareLink': { - var maxExpireMinutes = (typeof domain.maxguestsessionsharingtime == 'number') ? domain.maxguestsessionsharingtime : 60; - console.log(maxExpireMinutes); - var err = null; + var err = null, maxExpireMinutes = (typeof domain.maxguestsessionsharingtime == 'number') ? domain.maxguestsessionsharingtime : 60; if (common.validateString(command.nodeid, 8, 128) == false) { err = 'Invalid node id'; } // Check the meshid else if (common.validateString(command.guestname, 1, 128) == false) { err = 'Invalid guest name'; } // Check the guest name else if (common.validateInt(command.expire, 1, maxExpireMinutes) == false) { err = 'Invalid expire time'; } // Check the expire time in hours