jobs - disable post-jobs when SWARM_MODE=yes on SIGHUP
This commit is contained in:
parent
92ee40819e
commit
2ea7331dad
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue