From 9f26aef7908de1b4ccc56e8e3e7815d9bb4de0fe Mon Sep 17 00:00:00 2001 From: Neal Conner Date: Thu, 1 Feb 2018 13:45:21 -0500 Subject: [PATCH] Update lamassu-update, add to bin (#92) * Use --allow-root to avoid gyp error Without --allow-root, when running on existing installs the terminal streams an endless: ```gyp WARN EACCES user "root" does not have permission to access the dev dir...``` * Add lamassu-update to bin * Change to --unsafe-perm which is mentioned in npm docs --- bin/lamassu-update | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/lamassu-update b/bin/lamassu-update index fd8efbf2..df6848ac 100644 --- a/bin/lamassu-update +++ b/bin/lamassu-update @@ -3,7 +3,7 @@ set -e supervisorctl stop lamassu-server supervisorctl stop lamassu-admin-server -npm -g install lamassu/lamassu-server#v5 +npm -g install lamassu/lamassu-server#v5 --unsafe-perm lamassu-migrate supervisorctl start lamassu-server supervisorctl start lamassu-admin-server diff --git a/package.json b/package.json index bf2d3d39..9838f139 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,8 @@ "lamassu-mnemonic": "./bin/lamassu-mnemonic", "lamassu-cancel": "./bin/lamassu-cancel", "lamassu-nuke-db": "./bin/lamassu-nuke-db", - "lamassu-coins": "./bin/lamassu-coins" + "lamassu-coins": "./bin/lamassu-coins", + "lamassu-update": "./bin/lamassu-update" }, "scripts": { "start": "node bin/lamassu-server",