mirror of
https://github.com/searxng/searxng.git
synced 2025-12-22 19:50:00 +00:00
[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:
committed by
Markus Heiser
parent
0b832f19bf
commit
d026486ce3
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user