diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2020-04-04 17:53:16 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2020-04-04 17:53:16 +0200 |
commit | e530e20ae6a4d1f8621f535523cd2af76f715b0b (patch) | |
tree | b44e18346b0fce1d1174123069b2a6b733b9eede /utils/morty.sh | |
parent | 3c19f2f1cef31fd512975c70a25442d078992a42 (diff) | |
download | searxng-e530e20ae6a4d1f8621f535523cd2af76f715b0b.tar.gz searxng-e530e20ae6a4d1f8621f535523cd2af76f715b0b.zip |
misc: fix variuous marginals
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/morty.sh')
-rwxr-xr-x | utils/morty.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/morty.sh b/utils/morty.sh index ec1d47cb6..d79faa037 100755 --- a/utils/morty.sh +++ b/utils/morty.sh @@ -15,6 +15,7 @@ in_container && lxc_set_suite_env # ---------------------------------------------------------------------------- PUBLIC_URL="${PUBLIC_URL:-http://$(uname -n)/searx}" +PUBLIC_HOST="${PUBLIC_HOST:-$(echo "$PUBLIC_URL" | sed -e 's/[^/]*\/\/\([^@]*@\)\?\([^:/]*\).*/\2/')}" PUBLIC_URL_PATH_MORTY="${PUBLIC_URL_PATH_MORTY:-/morty}" PUBLIC_URL_MORTY="$(echo "$PUBLIC_URL" | sed -e's,^\(.*://[^/]*\).*,\1,g')${PUBLIC_URL_PATH_MORTY}" @@ -378,7 +379,6 @@ EOF return 0 } - enable_debug() { warn_msg "Do not enable debug in production enviroments!!" info_msg "Enabling debug option needs to reinstall systemd service!" |