summaryrefslogtreecommitdiff
path: root/utils/searx.sh
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2020-04-11 13:19:11 +0200
committerMarkus Heiser <markus.heiser@darmarit.de>2020-04-11 13:19:11 +0200
commit58d5da8b57c5aeab92f551e8d175be67537c351c (patch)
tree5c75c0d6b3fd80c05c592b7dc28bd8ddd90e91a7 /utils/searx.sh
parent67afa6b1fbb635626f278958980b87d3e8fed12c (diff)
downloadsearxng-58d5da8b57c5aeab92f551e8d175be67537c351c.tar.gz
searxng-58d5da8b57c5aeab92f551e8d175be67537c351c.zip
nginx: normalize installation (docs and script)s over all distros
This is the revision of the documentation about the varous nginx installation variants. It also implements the nginx installation scripts for morty and filtron. Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/searx.sh')
-rwxr-xr-xutils/searx.sh8
1 files changed, 2 insertions, 6 deletions
diff --git a/utils/searx.sh b/utils/searx.sh
index dde2b93ab..9a73c58cc 100755
--- a/utils/searx.sh
+++ b/utils/searx.sh
@@ -114,9 +114,7 @@ usage() {
# shellcheck disable=SC1117
cat <<EOF
-
usage::
-
$(basename "$0") shell
$(basename "$0") install [all|user|searx-src|pyenv|uwsgi|packages|buildhost]
$(basename "$0") update [searx]
@@ -178,8 +176,6 @@ EOF
}
main() {
- rst_title "$SEARX_INSTANCE_NAME" part
-
required_commands \
sudo systemctl install git wget curl \
|| exit
@@ -187,9 +183,8 @@ main() {
local _usage="unknown or missing $1 command $2"
case $1 in
- --source-only) ;;
+ --getenv) var="$2"; echo "${!var}"; exit 0;;
-h|--help) usage; exit 0;;
-
shell)
sudo_or_exit
interactive_shell "${SERVICE_USER}"
@@ -203,6 +198,7 @@ main() {
*) usage "$_usage"; exit 42;;
esac ;;
install)
+ rst_title "$SEARX_INSTANCE_NAME" part
sudo_or_exit
case $2 in
all) install_all ;;