mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-01 18:19:55 +00:00
[BETA] Fix sed replacement for duplicate includes REF: #287
This commit is contained in:
parent
c1c125143d
commit
2009e79024
1 changed files with 2 additions and 1 deletions
|
@ -323,7 +323,8 @@ 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 "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