[MASTER] FIX (sed) check_nginx_directives()

Fixes: #287 Closes: #287
This commit is contained in:
Mitchell Krog 2019-07-31 14:23:24 +02:00
parent 30324163a1
commit 7fc8ef5611
No known key found for this signature in database
GPG key ID: E02E9D10427B6A43
2 changed files with 1 additions and 2 deletions

View file

@ -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

View file

@ -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