entrypoint.sh 394 B

12345678910111213
  1. {% macro entrypoint(values) -%}
  2. #!/bin/sh
  3. {% set cfg_file_path = "%s/config.toml" | format(values.consts.config_dir_path) %}
  4. mkdir -p "{{ values.consts.config_dir_path }}"
  5. touch "{{ cfg_file_path }}"
  6. sed -i "/auth=/d" "{{ cfg_file_path }}"
  7. echo 'auth="{{ values.electrs.bitcoind_rpc_user }}:{{ values.electrs.bitcoind_rpc_password }}"' >> "{{ cfg_file_path }}"
  8. electrs "$@"
  9. {%- endmacro %}