forked from Ponysearch/Ponysearch
searx.sh: add commandline 'install packages'
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
d48c7bf678
commit
938bb02550
1 changed files with 9 additions and 4 deletions
|
@ -41,19 +41,22 @@ SEARX_UWSGI_SOCKET="/run/uwsgi/app/searx/socket"
|
||||||
SEARX_PACKAGES_debian="\
|
SEARX_PACKAGES_debian="\
|
||||||
python3-dev python3-babel python3-venv
|
python3-dev python3-babel python3-venv
|
||||||
uwsgi uwsgi-plugin-python3
|
uwsgi uwsgi-plugin-python3
|
||||||
git build-essential libxslt-dev zlib1g-dev libffi-dev libssl-dev"
|
git build-essential libxslt-dev zlib1g-dev libffi-dev libssl-dev
|
||||||
|
shellcheck"
|
||||||
|
|
||||||
# pacman packages
|
# pacman packages
|
||||||
SEARX_PACKAGES_arch="\
|
SEARX_PACKAGES_arch="\
|
||||||
python python-pip python-lxml python-babel
|
python python-pip python-lxml python-babel
|
||||||
uwsgi uwsgi-plugin-python
|
uwsgi uwsgi-plugin-python
|
||||||
git base-devel libxml2"
|
git base-devel libxml2
|
||||||
|
shellcheck"
|
||||||
|
|
||||||
# dnf packages
|
# dnf packages
|
||||||
SEARX_PACKAGES_fedora="\
|
SEARX_PACKAGES_fedora="\
|
||||||
python python-pip python-lxml python-babel
|
python python-pip python-lxml python-babel
|
||||||
uwsgi uwsgi-plugin-python3
|
uwsgi uwsgi-plugin-python3
|
||||||
git @development-tools libxml2"
|
git @development-tools libxml2
|
||||||
|
ShellCheck"
|
||||||
|
|
||||||
case $DIST_ID in
|
case $DIST_ID in
|
||||||
ubuntu|debian) SEARX_PACKAGES="${SEARX_PACKAGES_debian}" ;;
|
ubuntu|debian) SEARX_PACKAGES="${SEARX_PACKAGES_debian}" ;;
|
||||||
|
@ -89,7 +92,7 @@ usage() {
|
||||||
usage::
|
usage::
|
||||||
|
|
||||||
$(basename "$0") shell
|
$(basename "$0") shell
|
||||||
$(basename "$0") install [all|user|searx-src|pyenv|uwsgi|apache]
|
$(basename "$0") install [all|user|searx-src|pyenv|uwsgi|apache|packages]
|
||||||
$(basename "$0") update [searx]
|
$(basename "$0") update [searx]
|
||||||
$(basename "$0") remove [all|user|pyenv|searx-src]
|
$(basename "$0") remove [all|user|pyenv|searx-src]
|
||||||
$(basename "$0") activate [service]
|
$(basename "$0") activate [service]
|
||||||
|
@ -107,6 +110,7 @@ install / remove
|
||||||
:pyenv: create/remove virtualenv (python) in $SEARX_PYENV
|
:pyenv: create/remove virtualenv (python) in $SEARX_PYENV
|
||||||
:uwsgi: install searx uWSGI application
|
:uwsgi: install searx uWSGI application
|
||||||
:settings: reinstall settings from ${REPO_ROOT}/searx/settings.yml
|
:settings: reinstall settings from ${REPO_ROOT}/searx/settings.yml
|
||||||
|
:packages: install needed packages from OS package manager
|
||||||
update searx
|
update searx
|
||||||
Update searx installation ($SERVICE_HOME)
|
Update searx installation ($SERVICE_HOME)
|
||||||
activate service
|
activate service
|
||||||
|
@ -168,6 +172,7 @@ main() {
|
||||||
searx-src) clone_searx ;;
|
searx-src) clone_searx ;;
|
||||||
settings) install_settings ;;
|
settings) install_settings ;;
|
||||||
uwsgi) install_searx_uwsgi;;
|
uwsgi) install_searx_uwsgi;;
|
||||||
|
packages) pkg_install "$SEARX_PACKAGES" ;;
|
||||||
*) usage "$_usage"; exit 42;;
|
*) usage "$_usage"; exit 42;;
|
||||||
esac ;;
|
esac ;;
|
||||||
update)
|
update)
|
||||||
|
|
Loading…
Reference in a new issue