jobs - disable post-jobs when SWARM_MODE=yes on SIGHUP

This commit is contained in:
bunkerity 2021-07-05 16:49:27 +02:00
parent 92ee40819e
commit 2ea7331dad
No known key found for this signature in database
GPG Key ID: 3D80806F12602A7C
1 changed files with 3 additions and 1 deletions

View File

@ -23,7 +23,9 @@ function trap_reload() {
nginx -s reload
if [ $? -eq 0 ] ; then
echo "[*] Reload successfull"
/opt/bunkerized-nginx/entrypoint/post-jobs.sh
if [ "$SWARM_MODE" != "yes" ] ; then
/opt/bunkerized-nginx/entrypoint/post-jobs.sh
fi
else
echo "[!] Reload failed"
fi