From f3c161f72a17ed107d67d914305daa8bcd1bd9d3 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Fri, 29 Oct 2021 17:40:37 +0200 Subject: [PATCH] [mod] utils/morty.sh - check a morty installation Impplement a script to check a morty installation:: ./utils/morty.sh install check Related-to: https://github.com/searxng/searxng/issues/450 Related-to: https://github.com/searxng/searxng/pull/446#issuecomment-954599668 Signed-off-by: Markus Heiser --- utils/morty.sh | 76 +++++++++++++++++++++++++++++--------------------- 1 file changed, 44 insertions(+), 32 deletions(-) diff --git a/utils/morty.sh b/utils/morty.sh index 21d031f0c..3d2d8c462 100755 --- a/utils/morty.sh +++ b/utils/morty.sh @@ -28,7 +28,8 @@ SERVICE_GROUP="${SERVICE_USER}" SERVICE_ENV_DEBUG=false GO_ENV="${SERVICE_HOME}/.go_env" -GO_PKG_URL="https://golang.org/dl/go1.17.2.linux-amd64.tar.gz" +GO_VERSION="go1.17.2" +GO_PKG_URL="https://golang.org/dl/${GO_VERSION}.linux-amd64.tar.gz" GO_TAR=$(basename "$GO_PKG_URL") # shellcheck disable=SC2034 @@ -47,7 +48,7 @@ usage() { cat <