Merge pull request #3515 from gradido/fix_webhook_setup

fix(other): start sh when called from webhook
This commit is contained in:
einhornimmond 2025-07-18 08:17:42 +02:00 committed by GitHub
commit d4683ce1d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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