summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2022-07-30 16:13:47 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2022-07-30 16:13:47 +0200
commitbded8750d5b4ae743dd96b3a814a78da66ab4a02 (patch)
tree9e27e5e30c698618b0a828f0e31cf85df79627ae /utils
parent645c2a2ca1cf40ab9429366ac70c69d1ac8fd004 (diff)
[mod] fix minor leftovers from PR #1332
Related: https://github.com/searxng/searxng/pull/1332 Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils')
-rwxr-xr-xutils/filtron.sh9
-rwxr-xr-xutils/morty.sh7
-rwxr-xr-xutils/searx.sh7
3 files changed, 22 insertions, 1 deletions
diff --git a/utils/filtron.sh b/utils/filtron.sh
index ab207bbd..7607bf6a 100755
--- a/utils/filtron.sh
+++ b/utils/filtron.sh
@@ -4,11 +4,15 @@
# shellcheck source=utils/lib.sh
source "$(dirname "${BASH_SOURCE[0]}")/lib.sh"
+# shellcheck source=utils/brand.env
+source "${REPO_ROOT}/utils/brand.env"
# ----------------------------------------------------------------------------
# config
# ----------------------------------------------------------------------------
+PUBLIC_URL="${PUBLIC_URL:-${SEARXNG_URL}}"
+
FILTRON_ETC="/etc/filtron"
SERVICE_NAME="filtron"
@@ -25,13 +29,16 @@ usage() {
# shellcheck disable=SC1117
cat <<EOF
usage::
- $(basename "$0") remove all]
+ $(basename "$0") remove all
$(basename "$0") apache remove
$(basename "$0") nginx remove
remove all : drop all components of the filtron service
apache remove : drop apache site ${APACHE_FILTRON_SITE}
nginx remove : drop nginx site ${NGINX_FILTRON_SITE}
+
+environment:
+ PUBLIC_URL : ${PUBLIC_URL}
EOF
[[ -n ${1} ]] && err_msg "$1"
diff --git a/utils/morty.sh b/utils/morty.sh
index a85b04bb..33c5c0e7 100755
--- a/utils/morty.sh
+++ b/utils/morty.sh
@@ -3,11 +3,15 @@
# shellcheck source=utils/lib.sh
source "$(dirname "${BASH_SOURCE[0]}")/lib.sh"
+# shellcheck source=utils/brand.env
+source "${REPO_ROOT}/utils/brand.env"
# ----------------------------------------------------------------------------
# config
# ----------------------------------------------------------------------------
+PUBLIC_URL="${PUBLIC_URL:-${SEARXNG_URL}}"
+
MORTY_LISTEN="${MORTY_LISTEN:-127.0.0.1:3000}"
PUBLIC_URL_PATH_MORTY="${PUBLIC_URL_PATH_MORTY:-/morty/}"
PUBLIC_URL_MORTY="${PUBLIC_URL_MORTY:-$(echo "$PUBLIC_URL" | sed -e's,^\(.*://[^/]*\).*,\1,g')${PUBLIC_URL_PATH_MORTY}}"
@@ -35,6 +39,9 @@ usage::
remove all : drop all components of the morty service
apache remove : drop apache site ${APACHE_MORTY_SITE}
nginx remove : drop nginx site ${NGINX_MORTY_SITE}
+
+environment:
+ PUBLIC_URL_MORTY : ${PUBLIC_URL_MORTY}
EOF
[[ -n ${1} ]] && err_msg "$1"
diff --git a/utils/searx.sh b/utils/searx.sh
index 2f5e98c8..5473c11c 100755
--- a/utils/searx.sh
+++ b/utils/searx.sh
@@ -4,11 +4,15 @@
# shellcheck source=utils/lib.sh
source "$(dirname "${BASH_SOURCE[0]}")/lib.sh"
+# shellcheck source=utils/brand.env
+source "${REPO_ROOT}/utils/brand.env"
# ----------------------------------------------------------------------------
# config
# ----------------------------------------------------------------------------
+PUBLIC_URL="${PUBLIC_URL:-${SEARXNG_URL}}"
+
SERVICE_NAME="searx"
SERVICE_USER="${SERVICE_USER:-${SERVICE_NAME}}"
SEARXNG_SETTINGS_PATH="/etc/searx/settings.yml"
@@ -24,6 +28,9 @@ usage::
$(basename "$0") remove all
remove all: complete uninstall of SearXNG service
+
+environment:
+ PUBLIC_URL : ${PUBLIC_URL}
EOF
[[ -n ${1} ]] && err_msg "$1"