#!/usr/bin/env bash
#
# Check that the configuration for deis-router is valid.
#

if grep -q "<no value>" "$1" ; then
	exit 1
fi

if ! /opt/nginx/sbin/nginx -t -c "$1" ; then
	exit 1
fi
