summaryrefslogtreecommitdiff
path: root/utils/searx.sh
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2021-06-23 09:56:59 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2021-06-23 09:56:59 +0200
commitb5f5ddd5a602772f0cf557676ea6ef50f04e0665 (patch)
treec624ebf6ddb0e8612fe42a711f866d63e0372129 /utils/searx.sh
parent056550d523ddf4e06821957e13623fc322cf4675 (diff)
downloadsearxng-b5f5ddd5a602772f0cf557676ea6ef50f04e0665.tar.gz
searxng-b5f5ddd5a602772f0cf557676ea6ef50f04e0665.zip
[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 <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/searx.sh')
-rwxr-xr-xutils/searx.sh12
1 files 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 <<EOF | sudo -H -u "${SERVICE_USER}" -i 2>&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 <<EOF | sudo -H -i 2>&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 <<EOF | sudo -H -i 2>&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 <<EOF | sudo -H -i 2>&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 <<EOF | sudo -H -i 2>&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"
}