diff --git a/install/relay-credentials.sh b/install/relay-credentials.sh deleted file mode 100644 index c17f0f9..0000000 --- a/install/relay-credentials.sh +++ /dev/null @@ -1,25 +0,0 @@ -echo "${_group}Generating Relay credentials ..." - -RELAY_CONFIG_YML="../relay/config.yml" -RELAY_CREDENTIALS_JSON="../relay/credentials.json" - -ensure_file_from_example $RELAY_CONFIG_YML - -if [[ ! -f "$RELAY_CREDENTIALS_JSON" ]]; then - - # We need the ugly hack below as `relay generate credentials` tries to read - # the config and the credentials even with the `--stdout` and `--overwrite` - # flags and then errors out when the credentials file exists but not valid - # JSON. We hit this case as we redirect output to the same config folder, - # creating an empty credentials file before relay runs. - - $dcr \ - --no-deps -T \ - --volume "$(pwd)/$RELAY_CONFIG_YML:/tmp/config.yml" \ - relay --config /tmp credentials generate --stdout \ - > "$RELAY_CREDENTIALS_JSON" - - echo "Relay credentials written to $RELAY_CREDENTIALS_JSON" -fi - -echo "${_endgroup}"