DISTRO TESTS setup-ngxblocker

Improve NGXBBB Block Appearance in nginx.conf REF: #256 REF: #266
This commit is contained in:
Mitchell Krog 2019-07-02 14:39:38 +02:00
parent 154bda4809
commit 015024dabd
No known key found for this signature in database
GPG key ID: C243C388553EDE5D

View file

@ -206,7 +206,7 @@ add_includes() {
#add comment above inserts
text="include $conf_dir/$(echo $include_list | awk '{print $NF}');"
sed -i "s|$text|\n\n\t##\n\t# Nginx Bad Bot Blocker Includes\n\t# REPO: https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker\n\t##\n\t$text|" $file
sed -i "s|$text|\n\n ##\n # Nginx Bad Bot Blocker Includes\n # REPO: https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker\n ##\n\t$text|" $file
# remove placeholders
sed -i "s|$ph||g" $file