[Nginx] Invert SKIP container condition

This commit is contained in:
FreddleSpl0it 2025-02-03 12:22:13 +01:00
parent e645f931dc
commit 97890b71f1
No known key found for this signature in database
GPG Key ID: 00E14E7634F4BEC5

View File

@ -8,13 +8,13 @@ until ping ${PHPFPMHOST} -c1 > /dev/null; do
echo "Waiting for PHP..." echo "Waiting for PHP..."
sleep 1 sleep 1
done done
if printf "%s\n" "${SKIP_SOGO}" | grep -E '^([yY][eE][sS]|[yY])+$' >/dev/null; then if ! printf "%s\n" "${SKIP_SOGO}" | grep -E '^([yY][eE][sS]|[yY])+$' >/dev/null; then
until ping ${SOGOHOST} -c1 > /dev/null; do until ping ${SOGOHOST} -c1 > /dev/null; do
echo "Waiting for SOGo..." echo "Waiting for SOGo..."
sleep 1 sleep 1
done done
fi fi
if printf "%s\n" "${SKIP_RSPAMD}" | grep -E '^([yY][eE][sS]|[yY])+$' >/dev/null; then if ! printf "%s\n" "${SKIP_RSPAMD}" | grep -E '^([yY][eE][sS]|[yY])+$' >/dev/null; then
until ping ${RSPAMDHOST} -c1 > /dev/null; do until ping ${RSPAMDHOST} -c1 > /dev/null; do
echo "Waiting for Rspamd..." echo "Waiting for Rspamd..."
sleep 1 sleep 1