Commit ba7d2092 authored by Matt Solomon's avatar Matt Solomon

feat: change to bash to allow echo -n

parent 6031fc41
......@@ -6,4 +6,4 @@ COPY entrypoint-l1.sh /entrypoint.sh
VOLUME ["/db"]
ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
#!/bin/sh
#!/bin/bash
set -exu
VERBOSITY=${GETH_VERBOSITY:-3}
......@@ -14,8 +14,8 @@ WS_PORT="${WS_PORT:-8546}"
if [ ! -d "$GETH_KEYSTORE_DIR" ]; then
echo "$GETH_KEYSTORE_DIR missing, running account import"
printf "%s" "pwd" > "$GETH_DATA_DIR"/password
printf "%s" "$BLOCK_SIGNER_PRIVATE_KEY" | sed 's/0x//' > "$GETH_DATA_DIR"/block-signer-key
echo -n "%s" "pwd" > "$GETH_DATA_DIR"/password
echo -n "%s" "$BLOCK_SIGNER_PRIVATE_KEY" | sed 's/0x//' > "$GETH_DATA_DIR"/block-signer-key
geth account import \
--datadir="$GETH_DATA_DIR" \
--password="$GETH_DATA_DIR"/password \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment