Inverted truth check for GUNICORN_MEDIA

This commit is contained in:
MaxJa4 2022-02-14 16:45:37 +01:00 committed by GitHub
parent c90de725b0
commit b9f16c3f66
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,7 +6,7 @@ NGINX_CONF_FILE=/opt/recipes/nginx/conf.d/Recipes.conf
echo "Checking configuration..."
if [ ! -f "$NGINX_CONF_FILE" ] && [ $GUNICORN_MEDIA -ne 1 ]; then
if [ ! -f "$NGINX_CONF_FILE" ] && [ $GUNICORN_MEDIA -eq 0 ]; then
echo -e "\n[WARNING]\nNginx configuration file could not be found at the default location!"
echo -e "Path: ${NGINX_CONF_FILE}\n"
fi