storj/cmd/storagenode/entrypoint

15 lines
297 B
Plaintext
Raw Normal View History

#!/bin/sh
set -euo pipefail
if [[ ! -d "${CONF_PATH}" ]]; then
./storagenode setup
fi
RUN_PARAMS="${RUN_PARAMS:-} --config-dir ${CONF_PATH}"
if [ -n "${SATELLITE_ADDR:-}" ]; then
RUN_PARAMS="${RUN_PARAMS} --kademlia.bootstrap-addr $SATELLITE_ADDR"
fi
exec ./storagenode run $RUN_PARAMS "$@"