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
|
nginx -s reload
|
||||||
if [ $? -eq 0 ] ; then
|
if [ $? -eq 0 ] ; then
|
||||||
echo "[*] Reload successfull"
|
echo "[*] Reload successfull"
|
||||||
/opt/bunkerized-nginx/entrypoint/post-jobs.sh
|
if [ "$SWARM_MODE" != "yes" ] ; then
|
||||||
|
/opt/bunkerized-nginx/entrypoint/post-jobs.sh
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "[!] Reload failed"
|
echo "[!] Reload failed"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user