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:-} --metrics.app-suffix=-alpha"
|
|
|
|
RUN_PARAMS="${RUN_PARAMS:-} --metrics.interval=30m"
|
2019-09-19 20:56:34 +01:00
|
|
|
RUN_PARAMS="${RUN_PARAMS:-} --contact.external-address=${ADDRESS}"
|
2019-10-01 00:33:00 +01:00
|
|
|
RUN_PARAMS="${RUN_PARAMS:-} --operator.email=${EMAIL}"
|
|
|
|
RUN_PARAMS="${RUN_PARAMS:-} --operator.wallet=${WALLET}"
|
2019-08-29 16:47:43 +01:00
|
|
|
RUN_PARAMS="${RUN_PARAMS:-} --console.address=:14002"
|
2019-04-23 16:51:04 +01:00
|
|
|
RUN_PARAMS="${RUN_PARAMS:-} --storage.allocated-disk-space=${STORAGE}"
|
2018-08-16 19:03:15 +01:00
|
|
|
|
2018-08-25 02:52:58 +01:00
|
|
|
exec ./storagenode run $RUN_PARAMS "$@"
|