From 935c62ec23a0422fe861bd8b8e04f800e87dae7f Mon Sep 17 00:00:00 2001 From: Bryan MacFarlane Date: Wed, 20 Apr 2016 21:28:36 -0400 Subject: [PATCH] service uses internal node --- package.json | 8 ++++---- src/agent/service.ts | 8 ++------ 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 1987021..4f812f7 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vsoagent-installer", "description": "Visual Studio Xplat Build Agent Installer", "main": "bin/install.js", - "version": "0.6.3", + "version": "0.6.5", "vsoAgentInfo": { "serviceMilestone": "1.999.0" }, @@ -42,10 +42,10 @@ "semver": "^5.1.0", "shelljs": "0.3.x", "svchost": "0.1.x", - "svcinstall": "^0.2.1", + "svcinstall": "^0.3.0", "validator": "~3.11.0", - "vso-node-api": "^3.0.1", - "vso-task-lib": "^0.5.0", + "vso-node-api": "^3.0.2", + "vso-task-lib": "^0.5.5", "xmlreader": "^0.2.3" }, "devDependencies": { diff --git a/src/agent/service.ts b/src/agent/service.ts index bf75c72..c6a9690 100644 --- a/src/agent/service.ts +++ b/src/agent/service.ts @@ -45,13 +45,9 @@ var svcName = 'vsoagent.' + accountName + '.' + agentName; console.log('serviceName: vsoagent.' + svcName); var svcinstall = new si.SvcInstall(); -/* -if (typeof svcinstall[action] !== 'function') { - showUsage(1); -}*/ +// use internal node +var nodePath = path.join(__dirname, '..', 'runtime/node/bin/node'); -// node is known as nodejs on some *nix installs -var nodePath = shelljs.which('nodejs') || shelljs.which('node'); var getSvcCfg = function () { if (!shelljs.test('-f', _cfgPath)) { console.error('Error: not configured as a service. use install action.');