[fix] scripts: elimination of limitations on dedicated distributions

The restriction of shell scripts to certain distributions is only required for
certain actions such as the installation of a SearXNG instance. The maintenance
scripts and build processes were previously also restricted to these specific
distributions.  With this patch, the build processes (such as the build of
online documentation) can now also be executed on all Linux distributions.

Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
Markus Heiser 2024-09-19 09:17:28 +02:00 committed by Markus Heiser
parent 0b832f19bf
commit d026486ce3
3 changed files with 25 additions and 15 deletions

View file

@ -164,9 +164,16 @@ EOF
}
main() {
required_commands \
sudo systemctl install git wget curl \
|| exit
case $1 in
install|remove|instance)
nginx_distro_setup
apache_distro_setup
uWSGI_distro_setup
required_commands \
sudo systemctl install git wget curl \
|| exit
;;
esac
local _usage="unknown or missing $1 command $2"
@ -898,6 +905,10 @@ _searxng.instance.inspect() {
}
searxng.doc.rst() {
local APACHE_SITES_AVAILABLE="/etc/apache2/sites-available"
local NGINX_APPS_AVAILABLE="/etc/nginx/default.apps-available"
local debian="${SEARXNG_PACKAGES_debian}"
local arch="${SEARXNG_PACKAGES_arch}"
local fedora="${SEARXNG_PACKAGES_fedora}"