#!/bin/bash

if [ "$RUN_MODE" = "mock" ]; then
  /bin/autoupdate-server-mock \
    -k /keys/private.key \
    -l 0.0.0.0:9999 \
    -p http://127.0.0.1:9999/ \
    -o getlantern \
    -n lantern
else
  /bin/autoupdate-server \
    -k /keys/private.key \
    -l 127.0.0.1:9999 \
    -p https://update.getlantern.org/ \
    -o getlantern \
    -n lantern
fi

#!/bin/bash

if [ "$RUN_MODE" = "mock" ]; then
  /bin/autoupdate-server-mock \
    -k /keys/private.key \
    -l 0.0.0.0:9999 \
    -p http://127.0.0.1:9999/ \
    -o getlantern \
    -n lantern
else
  /bin/autoupdate-server \
    -k /keys/private.key \
    -l 0.0.0.0:9999 \
    -p https://update.getlantern.org/ \
    -o getlantern \
    -n lantern
fi

Make dockerized process listen on any host.
Make dockerized process listen on any host.
