mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-23 00:48:44 +00:00
jobs - disable post-jobs when SWARM_MODE=yes on SIGHUP
This commit is contained in:
parent
92ee40819e
commit
2ea7331dad
1 changed files with 3 additions and 1 deletions
|
|
@ -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 a new issue