From 8d930be920237673d8b486fde177318789041c58 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Sat, 12 Mar 2016 17:16:04 +0200 Subject: [PATCH] run.sh: Listen anywhere if SOTA_CLIENT_ADDR is not set Force sota_client to listen anywhere instead of on the possibly unknown host sota-client if SOTA_CLIENT_ADDR is not set. Signed-off-by: Leon Anavi --- docker/run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/run.sh b/docker/run.sh index 995ac8b..250ca82 100755 --- a/docker/run.sh +++ b/docker/run.sh @@ -9,8 +9,8 @@ export DBUS_SESSION_BUS_ADDRESS export DBUS_SESSION_BUS_PID LOGLEVEL=${LOGLEVEL:-"info"} -SOTA_CLIENT="${SOTA_CLIENT_ADDR:-sota-client}:${SOTA_CLIENT_PORT:-9080}" +SOTA_CLIENT="${SOTA_CLIENT_ADDR:-0.0.0.0}:${SOTA_CLIENT_PORT:-9080}" RVI="${RVI:-http://rvi-client:8901}" export RUST_LOG=${RUST_LOG:-"sota_client=$LOGLEVEL"} -/bin/sota_client -c /var/sota/client.toml -r "$RVI" -e "$SOTA_CLIENT" +/usr/bin/sota_client -c /var/sota/client.toml -r "$RVI" -e "$SOTA_CLIENT"