* 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
10 lines
250 B
Bash
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
|
|
|