diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2020-03-07 20:24:08 +0100 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarit.de> | 2020-03-07 20:24:08 +0100 |
| commit | b1e90cff23eae2181d2b430e77471f488947d1a9 (patch) | |
| tree | 18d1c0ce98f034cdb2c38840b3138f81654ff945 /utils/searx.sh | |
| parent | a258358633e18d3e5768223ebb05201bbd2e8ca4 (diff) | |
LXC: separate lxc-suite from lxc & improved command line.
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/searx.sh')
| -rwxr-xr-x | utils/searx.sh | 12 |
1 files changed, 6 insertions, 6 deletions
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 |