Skip to content

Commit

Permalink
Fix for foreverpath, Thanks to @brokenmass.
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvind Agarwal authored and Arvind Agarwal committed Sep 18, 2017
1 parent 89f9001 commit 54a2ad4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions bin/forever-service
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ platforms.get(function(err, platform){
if(!fp.match(/\/$/)) fp = fp+'/';
ctx.foreverPath = fp;
} else {
var foreverCmd = getCmdPath('forever');
if(foreverCmd){
ctx.foreverPath = path.dirname(foreverCmd) + "/";
} else {
console.error("forever not found, forever must be installed using 'npm install -g forever'");
process.exit(1);
}
}
var foreverCmd = getCmdPath('forever');
if(foreverCmd){
ctx.foreverPath = path.dirname(foreverCmd) + "/";
} else {
console.error("forever not found, forever must be installed using 'npm install -g forever'");
process.exit(1);
}
}

if(options.runAsUser){
ctx.runAsUser = options.runAsUser;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "forever-service",
"version": "0.5.10",
"version": "0.5.11",
"preferGlobal": "true",
"description": "Provision node script as a service via forever, allowing it to automatically start on boot, working across various Linux distros and OS",
"main": "lib/api.js",
Expand Down

0 comments on commit 54a2ad4

Please sign in to comment.