mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
add nvm initalizinge before first pm2 call, to prevent bug when called from webhook
This commit is contained in:
parent
fc0e54b5c7
commit
e89b25f2d5
@ -165,6 +165,9 @@ trap onError ERR
|
||||
|
||||
# stop all services
|
||||
log_step "Stop and delete all Gradido services"
|
||||
# make sure nvm is loaded
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||
# check if pm2 has processes, maybe it was already cleared from a failed update
|
||||
# pm2 delete all if pm2 has no processes will trigger error and stop script
|
||||
# so let's check first
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user