diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2024-01-07 18:33:34 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarIT.de> | 2024-01-09 16:31:19 +0100 |
commit | f9c5727ddc74b9ee3bb95225c30f57c7aeb14806 (patch) | |
tree | 9cda98183b0efcbca8ba45b53d9502a36a0201a3 /utils/searxng.sh | |
parent | 60bc5baea31c24a72cfb4f45322e326cc62caf23 (diff) | |
download | searxng-f9c5727ddc74b9ee3bb95225c30f57c7aeb14806.tar.gz searxng-f9c5727ddc74b9ee3bb95225c30f57c7aeb14806.zip |
[mod] get rid of ./utils/brand.env and its workflow
All the environments defined in ./utils/brand.env are generated on the fly, so
there is no longer a need to define the brand environment in this file and all
the workflows to handle this file.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/searxng.sh')
-rwxr-xr-x | utils/searxng.sh | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/utils/searxng.sh b/utils/searxng.sh index 197188a4a..8cabbb722 100755 --- a/utils/searxng.sh +++ b/utils/searxng.sh @@ -9,8 +9,8 @@ SEARXNG_UWSGI_USE_SOCKET="${SEARXNG_UWSGI_USE_SOCKET:-true}" source "$(dirname "${BASH_SOURCE[0]}")/lib.sh" # shellcheck source=utils/lib_redis.sh source "$(dirname "${BASH_SOURCE[0]}")/lib_redis.sh" -# shellcheck source=utils/brand.env -source "${REPO_ROOT}/utils/brand.env" +# shellcheck source=utils/brand.sh +source "${REPO_ROOT}/utils/brand.sh" SERVICE_NAME="searxng" SERVICE_USER="searxng" @@ -159,7 +159,7 @@ searxng.instance.env() { echo " SEARXNG_INTERNAL_HTTP: ${SEARXNG_INTERNAL_HTTP}" fi cat <<EOF -environment ${SEARXNG_SRC}/utils/brand.env: +environment: GIT_URL : ${GIT_URL} GIT_BRANCH : ${GIT_BRANCH} SEARXNG_URL : ${SEARXNG_URL} @@ -527,7 +527,6 @@ searxng.install.settings() { if ! [[ -f "${SEARXNG_SRC}/.git/config" ]]; then die "Before install settings, first install SearXNG." - exit 42 fi mkdir -p "$(dirname "${SEARXNG_SETTINGS_PATH}")" @@ -608,8 +607,8 @@ searxng.install.uwsgi.http() { searxng.install.uwsgi.socket() { rst_para "Install ${SEARXNG_UWSGI_APP} using socket at: ${SEARXNG_UWSGI_SOCKET}" - mkdir -p "$(dirname ${SEARXNG_UWSGI_SOCKET})" - chown -R "${SERVICE_USER}:${SERVICE_GROUP}" "$(dirname ${SEARXNG_UWSGI_SOCKET})" + mkdir -p "$(dirname "${SEARXNG_UWSGI_SOCKET}")" + chown -R "${SERVICE_USER}:${SERVICE_GROUP}" "$(dirname "${SEARXNG_UWSGI_SOCKET}")" case $DIST_ID-$DIST_VERS in fedora-*) |