2018-07-19 20:42:50 +01:00
|
|
|
#!/bin/sh
|
|
|
|
set -euo pipefail
|
|
|
|
|
2019-04-23 16:51:04 +01:00
|
|
|
if [[ ! -f "config/config.yaml" ]]; then
|
|
|
|
./storagenode setup --config-dir config --identity-dir identity
|
2019-02-28 20:12:52 +00:00
|
|
|
fi
|
|
|
|
|
2019-04-23 16:51:04 +01:00
|
|
|
RUN_PARAMS="${RUN_PARAMS:-} --config-dir config"
|
|
|
|
RUN_PARAMS="${RUN_PARAMS:-} --identity-dir identity"
|
2018-09-07 20:46:08 +01:00
|
|
|
|
2019-04-23 16:51:04 +01:00
|
|
|
RUN_PARAMS="${RUN_PARAMS:-} --kademlia.bootstrap-addr=bootstrap.storj.io:8888"
|
|
|
|
RUN_PARAMS="${RUN_PARAMS:-} --metrics.app-suffix=-alpha"
|
|
|
|
RUN_PARAMS="${RUN_PARAMS:-} --metrics.interval=30m"
|
|
|
|
RUN_PARAMS="${RUN_PARAMS:-} --server.use-peer-ca-whitelist=true"
|
|
|
|
RUN_PARAMS="${RUN_PARAMS:-} --kademlia.external-address=${ADDRESS}"
|
|
|
|
RUN_PARAMS="${RUN_PARAMS:-} --kademlia.operator.email=${EMAIL}"
|
|
|
|
RUN_PARAMS="${RUN_PARAMS:-} --kademlia.operator.wallet=${WALLET}"
|
|
|
|
RUN_PARAMS="${RUN_PARAMS:-} --storage.allocated-bandwidth=${BANDWIDTH}"
|
|
|
|
RUN_PARAMS="${RUN_PARAMS:-} --storage.allocated-disk-space=${STORAGE}"
|
|
|
|
RUN_PARAMS="${RUN_PARAMS:-} --storage.whitelisted-satellite-i-ds=12EayRS2V1kEsWESU9QMRseFhdxYxKicsiFmxrsLZHeLUtdps3S,1Vrf9xmmHw6KaVFMcfR2YPt8YpVVoQZGTUJyjYc6CajeYrAqrB,118UWpMCHzs6CvSgWd9BfFVjw5K9pZbJjkfZJexMtSkmKxvvAW"
|
2018-08-16 19:03:15 +01:00
|
|
|
|
2018-08-25 02:52:58 +01:00
|
|
|
exec ./storagenode run $RUN_PARAMS "$@"
|