Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 935c62e

Browse files
service uses internal node
1 parent 91e63b8 commit 935c62e

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "vsoagent-installer",
33
"description": "Visual Studio Xplat Build Agent Installer",
44
"main": "bin/install.js",
5-
"version": "0.6.3",
5+
"version": "0.6.5",
66
"vsoAgentInfo": {
77
"serviceMilestone": "1.999.0"
88
},
@@ -42,10 +42,10 @@
4242
"semver": "^5.1.0",
4343
"shelljs": "0.3.x",
4444
"svchost": "0.1.x",
45-
"svcinstall": "^0.2.1",
45+
"svcinstall": "^0.3.0",
4646
"validator": "~3.11.0",
47-
"vso-node-api": "^3.0.1",
48-
"vso-task-lib": "^0.5.0",
47+
"vso-node-api": "^3.0.2",
48+
"vso-task-lib": "^0.5.5",
4949
"xmlreader": "^0.2.3"
5050
},
5151
"devDependencies": {

src/agent/service.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,9 @@ var svcName = 'vsoagent.' + accountName + '.' + agentName;
4545
console.log('serviceName: vsoagent.' + svcName);
4646
var svcinstall = new si.SvcInstall();
4747

48-
/*
49-
if (typeof svcinstall[action] !== 'function') {
50-
showUsage(1);
51-
}*/
48+
// use internal node
49+
var nodePath = path.join(__dirname, '..', 'runtime/node/bin/node');
5250

53-
// node is known as nodejs on some *nix installs
54-
var nodePath = shelljs.which('nodejs') || shelljs.which('node');
5551
var getSvcCfg = function () {
5652
if (!shelljs.test('-f', _cfgPath)) {
5753
console.error('Error: not configured as a service. use install action.');

0 commit comments

Comments
 (0)