#!/bin/sh

if [ ! -e /var/log/angie/modsecurity ]; then
	install -d -m 755 -o root -g root /var/log/angie/modsecurity || :
fi
if [ ! -e /var/log/angie/modsecurity/concurrent ]; then
	install -d -m 755 -o angie -g angie /var/log/angie/modsecurity/concurrent || :
fi

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

The ModSecurity dynamic module for Angie has been installed.
To enable this module, add the following to /etc/angie/angie.conf
and reload angie:

    load_module modules/ngx_http_modsecurity_module.so;

Please refer to the module documentation for further details:
https://github.com/owasp-modsecurity/ModSecurity-nginx

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

exit 0
