summaryrefslogtreecommitdiff
path: root/utils/searx.sh
diff options
context:
space:
mode:
authorIvan Gabaldon <igabaldon@inetol.net>2025-05-13 21:10:02 +0200
committerGitHub <noreply@github.com>2025-05-13 21:10:02 +0200
commit1a8884fa26bedf983516308e69b9863888cd397e (patch)
tree962feae057a8d93bb78e704ea23a40c0da006fe2 /utils/searx.sh
parent4fb29aae812aa464c12fd959fc24dd91934f6a3b (diff)
parent2cfd3fc44b16e7f3c6010c0ac1004efb6dacf382 (diff)
[enh] tidy: clean old morty, filtron, searx references
Everyone should have already switched from legacy methods.
Diffstat (limited to 'utils/searx.sh')
-rwxr-xr-xutils/searx.sh88
1 files changed, 0 insertions, 88 deletions
diff --git a/utils/searx.sh b/utils/searx.sh
deleted file mode 100755
index 1d339cd68..000000000
--- a/utils/searx.sh
+++ /dev/null
@@ -1,88 +0,0 @@
-#!/usr/bin/env bash
-# SPDX-License-Identifier: AGPL-3.0-or-later
-# shellcheck disable=SC2001
-
-# shellcheck source=utils/lib.sh
-source "$(dirname "${BASH_SOURCE[0]}")/lib.sh"
-
-# ----------------------------------------------------------------------------
-# config
-# ----------------------------------------------------------------------------
-
-PUBLIC_URL="${PUBLIC_URL:-${SEARXNG_URL}}"
-
-SERVICE_NAME="searx"
-SERVICE_USER="${SERVICE_USER:-${SERVICE_NAME}}"
-SEARXNG_SETTINGS_PATH="/etc/searx/settings.yml"
-SEARXNG_UWSGI_APP="searx.ini"
-
-# ----------------------------------------------------------------------------
-usage() {
-# ----------------------------------------------------------------------------
-
- # shellcheck disable=SC1117
- cat <<EOF
-usage::
- $(basename "$0") remove all
-
-remove all: complete uninstall of SearXNG service
-
-environment:
- PUBLIC_URL : ${PUBLIC_URL}
-EOF
-
- [[ -n ${1} ]] && err_msg "$1"
-}
-
-main() {
-
- local _usage="unknown or missing $1 command $2"
-
- case $1 in
- remove)
- rst_title "SearXNG (remove)" part
- sudo_or_exit
- case $2 in
- all) remove_all;;
- *) usage "$_usage"; exit 42;;
- esac ;;
- *) usage "unknown or missing command $1"; exit 42;;
- esac
-}
-
-remove_all() {
- rst_title "De-Install SearXNG (service)"
-
- rst_para "\
-It goes without saying that this script can only be used to remove
-installations that were installed with this script."
-
- if ! ask_yn "Do you really want to deinstall SearXNG?"; then
- return
- fi
- remove_searx_uwsgi
- drop_service_account "${SERVICE_USER}"
- remove_settings
- wait_key
- if service_is_available "${PUBLIC_URL}"; then
- MSG="** Don't forget to remove your public site! (${PUBLIC_URL}) **" wait_key 10
- fi
-}
-
-remove_settings() {
- rst_title "remove SearXNG settings" section
- echo
- info_msg "delete ${SEARXNG_SETTINGS_PATH}"
- rm -f "${SEARXNG_SETTINGS_PATH}"
-}
-
-remove_searx_uwsgi() {
- rst_title "Remove SearXNG's uWSGI app (searxng.ini)" section
- echo
- uWSGI_remove_app "$SEARXNG_UWSGI_APP"
-}
-
-
-# ----------------------------------------------------------------------------
-main "$@"
-# ----------------------------------------------------------------------------