1
0
mirror of https://github.com/searxng/searxng.git synced 2024-11-22 04:01:40 +01:00
searxng/utils
Markus Heiser 7167a7ee36 [mod] utils/.searx.sh: add commands: install [dot-config|init-src]
This patch implements two new commands:

install dot-config :
  - copy ./config.sh to ${SEARX_SRC}
  - implemented in new function install_DOT_CONFIG

install init-src:
  - sync files (SEARX_SRC_INIT_FILES) with ${SEARX_SRC}
  - implemented in new function init_SEARX_SRC()

new functions: verify_continue_install() and prompt_installation_status()
  These functions are used in installation procedures to get the status of the
  installation procedure.  The status is based on the existing function:

    usage: install_searx_get_state

        Prompts a string indicating the status of the installation procedure

    missing-searx-clone:
       There is no clone at ${SEARX_SRC}
    missing-searx-pyenv:
       There is no pyenv in ${SEARX_PYENV}
    installer-modified:
       There are files modified locally in the installer (clone),
       see ${SEARX_SRC_INIT_FILES} description.
    python-installed:
       Scripts can be executed in instance's environment
       - user:  ${SERVICE_USER}
       - pyenv: ${SEARX_PYENV}

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
2021-07-21 14:38:59 +02:00
..
templates [mod] normalize .config.sh with settings.yml 2021-07-21 14:38:57 +02:00
brand.env [fix] utils/build_env.py and add documentation 2021-07-21 14:38:54 +02:00
build_env.py [fix] utils/build_env.py and add documentation 2021-07-21 14:38:54 +02:00
filtron.sh [mod] normalize .config.sh with settings.yml 2021-07-21 14:38:57 +02:00
lib_install.sh [mod] normalize .config.sh with settings.yml 2021-07-21 14:38:57 +02:00
lib_static.sh [mod] move functions from utils/manage_static.sh to ./manage script 2021-06-26 13:45:25 +02:00
lib.sh [mod] load .config.sh from installation (utils/lib_install.sh) 2021-07-21 14:38:33 +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 [fix] pacman --noprogressbar in shell scripts 2021-07-03 18:24:55 +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] normalize .config.sh with settings.yml 2021-07-21 14:38:57 +02:00
searx.sh [mod] utils/.searx.sh: add commands: install [dot-config|init-src] 2021-07-21 14:38:59 +02:00