#!/bin/sh

if test -e /etc/nginx/license.jwt \
    || test -e "$NGINX_LICENSE_FILE" \
    || test -n "$NGINX_UPGRADE_NOLICENSE"; then
    # license file is in place, in custom location or not required
    exit 0
fi

cat <<BANNER
----------------------------------------------------------------------

!!! YOUR NGINX Plus SETUP IS IN A BROKEN STATE !!!

NGINX Plus R33 introduces a breaking change.
Please read about new licensing scheme and required actions here:

https://docs.nginx.com/solutions/about-subscription-licenses

----------------------------------------------------------------------
BANNER

exit 1
