From b5f5ddd5a602772f0cf557676ea6ef50f04e0665 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Wed, 23 Jun 2021 09:56:59 +0200 Subject: [PATCH] [fix] utils/searx.sh: signature of YAML settings has been changed In 5a7b12ee we changed the signature of the YAML settings, this patch takes this into account. Related-to: 5a7b12ee [yamllint] searx/settings.yml Signed-off-by: Markus Heiser --- utils/searx.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/utils/searx.sh b/utils/searx.sh index a777eab26..40a61e4f4 100755 --- a/utils/searx.sh +++ b/utils/searx.sh @@ -552,7 +552,7 @@ test_local_searx() { return fi fi - sed -i -e "s/debug : False/debug : True/g" "$SEARX_SETTINGS_PATH" + sed -i -e "s/debug: false/debug: true/g" "$SEARX_SETTINGS_PATH" tee_stderr 0.1 <&1 | prefix_stdout "$_service_prefix" export SEARX_SETTINGS_PATH="${SEARX_SETTINGS_PATH}" cd ${SEARX_SRC} @@ -560,7 +560,7 @@ timeout 10 python searx/webapp.py & sleep 3 curl --location --verbose --head --insecure $SEARX_INTERNAL_HTTP EOF - sed -i -e "s/debug : True/debug : False/g" "$SEARX_SETTINGS_PATH" + sed -i -e "s/debug: true/debug: false/g" "$SEARX_SETTINGS_PATH" } install_searx_uwsgi() { @@ -594,7 +594,7 @@ enable_image_proxy() { info_msg "try to enable image_proxy ..." tee_stderr 0.1 <&1 | prefix_stdout "$_service_prefix" cd ${SEARX_SRC} -sed -i -e "s/image_proxy : False/image_proxy : True/g" "$SEARX_SETTINGS_PATH" +sed -i -e "s/image_proxy: false/image_proxy: true/g" "$SEARX_SETTINGS_PATH" EOF uWSGI_restart "$SEARX_UWSGI_APP" } @@ -603,7 +603,7 @@ disable_image_proxy() { info_msg "try to enable image_proxy ..." tee_stderr 0.1 <&1 | prefix_stdout "$_service_prefix" cd ${SEARX_SRC} -sed -i -e "s/image_proxy : True/image_proxy : False/g" "$SEARX_SETTINGS_PATH" +sed -i -e "s/image_proxy: true/image_proxy: false/g" "$SEARX_SETTINGS_PATH" EOF uWSGI_restart "$SEARX_UWSGI_APP" } @@ -613,7 +613,7 @@ enable_debug() { info_msg "try to enable debug mode ..." tee_stderr 0.1 <&1 | prefix_stdout "$_service_prefix" cd ${SEARX_SRC} -sed -i -e "s/debug : False/debug : True/g" "$SEARX_SETTINGS_PATH" +sed -i -e "s/debug: false/debug: true/g" "$SEARX_SETTINGS_PATH" EOF uWSGI_restart "$SEARX_UWSGI_APP" } @@ -622,7 +622,7 @@ disable_debug() { info_msg "try to disable debug mode ..." tee_stderr 0.1 <&1 | prefix_stdout "$_service_prefix" cd ${SEARX_SRC} -sed -i -e "s/debug : True/debug : False/g" "$SEARX_SETTINGS_PATH" +sed -i -e "s/debug: true/debug: false/g" "$SEARX_SETTINGS_PATH" EOF uWSGI_restart "$SEARX_UWSGI_APP" }