multisite - bug fixes

This commit is contained in:
bunkerity
2020-11-11 16:54:27 +01:00
parent bd7997497b
commit 2da51d92a6
14 changed files with 60 additions and 33 deletions

View File

@@ -17,7 +17,7 @@ for ua in $BLACKLIST ; do
done
DATA_ESCAPED=$(echo "$DATA" | sed 's: :\\\\ :g' | sed 's:\\\\ yes;: yes;:g' | sed 's:\\\\\\ :\\\\ :g')
cp /opt/confs/map-user-agent.conf /etc/nginx/map-user-agent.conf
cp /opt/confs/global/map-user-agent.conf /etc/nginx/map-user-agent.conf
replace_in_file "/etc/nginx/map-user-agent.conf" "%BLOCK_USER_AGENT%" "$DATA_ESCAPED"
if [ -f /tmp/nginx.pid ] ; then