diff options
| author | Markus Heiser <markus.heiser@darmarIT.de> | 2021-10-30 16:12:57 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-30 16:12:57 +0000 |
| commit | 8f18c69f7ab387de18679b46c3d29365310b44d4 (patch) | |
| tree | c2fcc45ca5a7ff37b52f94eecedcff0968355c86 /utils/morty.sh | |
| parent | 46fde2e98e0fd55e947c3d9c1663f22e3d34bf1e (diff) | |
| parent | db6a4d13e7ebe08a5df4fe6f99b0ef87aac94cc8 (diff) | |
Merge pull request #446 from return42/searxng-brand
[brand] SearXNG environment variables & /utils scripts
Diffstat (limited to 'utils/morty.sh')
| -rwxr-xr-x | utils/morty.sh | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/utils/morty.sh b/utils/morty.sh index 60220df02..e1481016f 100755 --- a/utils/morty.sh +++ b/utils/morty.sh @@ -49,6 +49,7 @@ usage() { usage:: $(basename "$0") shell $(basename "$0") install [all|check|user] + $(basename "$0") reinstall all $(basename "$0") update [morty] $(basename "$0") remove [all] $(basename "$0") activate [service] @@ -66,6 +67,8 @@ install / remove :user: add/remove service user '$SERVICE_USER' ($SERVICE_HOME) install :check: check the morty installation +reinstall: + :all: runs 'install/remove all' update morty Update morty installation ($SERVICE_HOME) activate service @@ -145,6 +148,16 @@ main() { ;; *) usage "$_usage"; exit 42;; esac ;; + reinstall) + rst_title "re-install $SERVICE_NAME" part + sudo_or_exit + case $2 in + all) + remove_all + install_all + ;; + *) usage "$_usage"; exit 42;; + esac ;; install) rst_title "$SERVICE_NAME" part sudo_or_exit @@ -286,6 +299,7 @@ install_check() { if [[ "${GO_VERSION}" > "$(go_version)" ]]; then warn_msg "golang ($(go_version)) needs to be $GO_VERSION at least" + warn_msg "you need to reinstall $SERVICE_USER --> $0 reinstall all" else info_msg "golang $(go_version) is installed (min needed is: $GO_VERSION)" fi @@ -513,7 +527,7 @@ This installs a reverse proxy (ProxyPass) into nginx site (${NGINX_MORTY_SITE})" # shellcheck disable=SC2034 SEARX_SRC=$("${REPO_ROOT}/utils/searx.sh" --getenv SEARX_SRC) # shellcheck disable=SC2034 - SEARX_URL_PATH=$("${REPO_ROOT}/utils/searx.sh" --getenv SEARX_URL_PATH) + SEARXNG_URL_PATH=$("${REPO_ROOT}/utils/searx.sh" --getenv SEARXNG_URL_PATH) nginx_install_app "${NGINX_MORTY_SITE}" info_msg "testing public url .." |