storj/cmd/storagenode/entrypoint

15 lines
293 B
Plaintext
Raw Normal View History

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