lamassu-server/bin/lamassu-update
Neal Conner 9f26aef790 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
2018-02-01 20:45:21 +02:00

10 lines
250 B
Bash

#!/usr/bin/env bash
set -e
supervisorctl stop lamassu-server
supervisorctl stop lamassu-admin-server
npm -g install lamassu/lamassu-server#v5 --unsafe-perm
lamassu-migrate
supervisorctl start lamassu-server
supervisorctl start lamassu-admin-server