summaryrefslogtreecommitdiff
path: root/utils/searx.sh
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2020-03-08 18:32:30 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2020-03-08 18:32:30 +0100
commit938bb0255045eb0f5e21027805fa018cd53d6cad (patch)
treedbd3260586522a7615804b84fb0c717fcaacf950 /utils/searx.sh
parentd48c7bf6783ba9220c88b3c3ccb7b2ce3721e905 (diff)
downloadsearxng-938bb0255045eb0f5e21027805fa018cd53d6cad.tar.gz
searxng-938bb0255045eb0f5e21027805fa018cd53d6cad.zip
searx.sh: add commandline 'install packages'
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/searx.sh')
-rwxr-xr-xutils/searx.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/utils/searx.sh b/utils/searx.sh
index 14af32d0f..9d33dc31a 100755
--- a/utils/searx.sh
+++ b/utils/searx.sh
@@ -41,19 +41,22 @@ SEARX_UWSGI_SOCKET="/run/uwsgi/app/searx/socket"
SEARX_PACKAGES_debian="\
python3-dev python3-babel python3-venv
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
SEARX_PACKAGES_arch="\
python python-pip python-lxml python-babel
uwsgi uwsgi-plugin-python
-git base-devel libxml2"
+git base-devel libxml2
+shellcheck"
# dnf packages
SEARX_PACKAGES_fedora="\
python python-pip python-lxml python-babel
uwsgi uwsgi-plugin-python3
-git @development-tools libxml2"
+git @development-tools libxml2
+ShellCheck"
case $DIST_ID in
ubuntu|debian) SEARX_PACKAGES="${SEARX_PACKAGES_debian}" ;;
@@ -89,7 +92,7 @@ usage() {
usage::
$(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") remove [all|user|pyenv|searx-src]
$(basename "$0") activate [service]
@@ -107,6 +110,7 @@ install / remove
:pyenv: create/remove virtualenv (python) in $SEARX_PYENV
:uwsgi: install searx uWSGI application
:settings: reinstall settings from ${REPO_ROOT}/searx/settings.yml
+ :packages: install needed packages from OS package manager
update searx
Update searx installation ($SERVICE_HOME)
activate service
@@ -168,6 +172,7 @@ main() {
searx-src) clone_searx ;;
settings) install_settings ;;
uwsgi) install_searx_uwsgi;;
+ packages) pkg_install "$SEARX_PACKAGES" ;;
*) usage "$_usage"; exit 42;;
esac ;;
update)