if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ] ; then
	for confpair in #NAMES# ; do
		from=$(echo $confpair | cut -d: -f1)
		to=$(echo $confpair | cut -d: -f2)

		if [ -e /etc/nginx/modules-enabled/$to ]; then
			rm /etc/nginx/modules-enabled/$to
		fi
	done

	if [ -s /run/nginx.pid ]; then
		nginx -s reload
	fi
fi
