mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-03 19:20:16 +00:00
parent
30324163a1
commit
7fc8ef5611
2 changed files with 1 additions and 2 deletions
|
@ -323,7 +323,6 @@ check_nginx_directives() {
|
|||
printf "${BOLDYELLOW}setup will fix conflict from: '$x' in $bot_config${RESET}\n"
|
||||
if [ "$DRY_RUN" = "N" ]; then
|
||||
printf "${BOLDRED}disabling '$x' in: $bot_config${RESET}\n"
|
||||
#sed "s|$x|#$x|" $bot_config | grep $x
|
||||
sed -i "s/$x/#$x/g" $bot_config | grep $x
|
||||
printf " ${BOLDGREEN}disabled OK${RESET}\n\n"
|
||||
fi
|
||||
|
|
|
@ -321,7 +321,7 @@ check_nginx_directives() {
|
|||
printf "${BOLDYELLOW}setup will fix conflict from: '$x' in $bot_config${RESET}\n"
|
||||
if [ "$DRY_RUN" = "N" ]; then
|
||||
printf "${BOLDRED}disabling '$x' in: $bot_config${RESET}\n"
|
||||
sed "s|$x|#$x|" $bot_config | grep $x
|
||||
sed -i "s/$x/#$x/g" $bot_config | grep $x
|
||||
printf " ${BOLDGREEN}disabled OK${RESET}\n\n"
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue