From b1e90cff23eae2181d2b430e77471f488947d1a9 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 7 Mar 2020 20:24:08 +0100 Subject: LXC: separate lxc-suite from lxc & improved command line. Signed-off-by: Markus Heiser --- utils/searx.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'utils/searx.sh') diff --git a/utils/searx.sh b/utils/searx.sh index 9d73f46e2..205c7068d 100755 --- a/utils/searx.sh +++ b/utils/searx.sh @@ -6,7 +6,7 @@ # shellcheck source=utils/lib.sh source "$(dirname "${BASH_SOURCE[0]}")/lib.sh" source_dot_config -source "${REPO_ROOT}/utils/lxc.env" +source "${REPO_ROOT}/utils/lxc-searx.env" # ---------------------------------------------------------------------------- # config @@ -544,13 +544,13 @@ EOF uWSGI_app_available "$SEARX_UWSGI_APP" \ || err_msg "uWSGI app $SEARX_UWSGI_APP not available!" - if is_container; then + if in_container; then warn_msg "runnning inside container ..." - for ip in $(hostname -I); do + for ip in $(global_IPs); do if [[ $ip =~ .*:.* ]]; then - info_msg " public HTTP service (IPv6) --> http://[$ip]" + info_msg " public HTTP service (IPv6) --> http://${ip#*|}" else - info_msg " public HTTP service (IPv4) --> http://$ip" + info_msg " public HTTP service (IPv4) --> http://${ip#*|}" fi done warn_msg "SEARX_INTERNAL_URL not available from outside" @@ -564,7 +564,7 @@ EOF if ! service_is_available "${PUBLIC_URL}"; then warn_msg "Public service at ${PUBLIC_URL} is not available!" - if is_container; then + if in_container; then warn_msg "Check if public name is correct and routed or use the public IP from above." fi fi -- cgit v1.2.3