Ponysearch/utils
Markus Heiser 61d3914b63 [fix] test.robot - do not use environment from ./utils/brand.env
Some defaults in the settings.yml are taken from the environment.
By example;

The manage scripts sources the ./utils/brand.env and sets SEARX_PORT
environment.  This enviroment *wins over* any settings in a YAML file.
Whe we run a::

    make test.robot

The searx/settings_robot.yml is used, in this file the server settings are::

    server:
      port: 11111
      bind_address: 127.0.0.1

To get in use of the 'port: 11111' we have to unset the SEARX_PORT environment
which was sourced before.

The function buildenv.unset_env() can be called in all use cases where the
enviroment from ./utils/brand.env is not wanted.  ATM it unset the enviroment
variables::

    unset GIT_URL
    unset GIT_BRANCH
    unset SEARX_URL
    unset SEARX_PORT
    unset SEARX_BIND_ADDRESS

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-07-24 16:28:15 +02:00
..
templates [mod] reduce enviroment variables in shell scripts to what is needed 2021-07-24 16:28:15 +02:00
brand.env [mod] reduce enviroment variables in shell scripts to what is needed 2021-07-24 16:28:15 +02:00
build_env.py [fix] test.robot - do not use environment from ./utils/brand.env 2021-07-24 16:28:15 +02:00
filtron.sh [mod] normalize .config.sh with settings.yml 2021-07-21 14:38:57 +02:00
lib.sh [mod] load .config.sh from installation (utils/lib_install.sh) 2021-07-21 14:38:33 +02:00
lib_install.sh [mod] utils/searx.sh - add command 'inspect settings' 2021-07-24 16:24:22 +02:00
lib_static.sh [mod] move functions from utils/manage_static.sh to ./manage script 2021-06-26 13:45:25 +02:00
lxc-searx.env [mod] LXC switch to Fedora 33 / Fedora 31 reached its EOL 2021-03-05 13:17:47 +01:00
lxc.sh [mod] reduce enviroment variables in shell scripts to what is needed 2021-07-24 16:28:15 +02:00
makefile.include [mod] replace makefile boilerplate by 'manage' script 2021-04-23 11:26:22 +02:00
makefile.lxc [mod] LXC_ENV_FOLDER moved from ./lxc to ./lxc-env 2020-12-26 11:43:18 +01:00
morty.sh [mod] reduce enviroment variables in shell scripts to what is needed 2021-07-24 16:28:15 +02:00
searx.sh [mod] utils/searx.sh - add command 'inspect settings' 2021-07-24 16:24:22 +02:00