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

View File

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