summaryrefslogtreecommitdiff
path: root/utils/searx.sh
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2020-02-04 19:47:33 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2020-02-04 19:47:33 +0100
commit71d7550dbe750f35f0dd7b5c513bc9e8db9512ee (patch)
tree84fcbd1a82a8f298807cd3490b2acee7b5fcbb64 /utils/searx.sh
parent2f40f61f83afb34f0c4b95019a53050a504ce43a (diff)
tooling box ./utils/*: minor fix from production test
Diffstat (limited to 'utils/searx.sh')
-rwxr-xr-xutils/searx.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/searx.sh b/utils/searx.sh
index 7609a4acf..ea6cb1e96 100755
--- a/utils/searx.sh
+++ b/utils/searx.sh
@@ -110,7 +110,7 @@ If needed, set PUBLIC_URL of your WEB service in the '${DOT_CONFIG#"$REPO_ROOT/"
SERVICE_USER : ${SERVICE_USER}
EOF
- [ ! -z ${1+x} ] && err_msg "$1"
+ [ ! -z "${1+x}" ] && err_msg "$1"
}
main() {
@@ -403,8 +403,8 @@ test_local_searx() {
tee_stderr 0.1 <<EOF | sudo -H -u "${SERVICE_USER}" -i 2>&1 | prefix_stdout "$_service_prefix"
cd ${SEARX_SRC}
sed -i -e "s/debug : False/debug : True/g" "$SEARX_SETTINGS"
-timeout 5 python3 searx/webapp.py &
-sleep 1
+timeout 10 python3 searx/webapp.py &
+sleep 3
curl --location --verbose --head --insecure $SEARX_INTERNAL_URL
sed -i -e "s/debug : True/debug : False/g" "$SEARX_SETTINGS"
EOF