Skip to content

Commit

Permalink
feat: change to bash to allow echo -n
Browse files Browse the repository at this point in the history
  • Loading branch information
mds1 committed Dec 13, 2023
1 parent 6031fc4 commit ba7d209
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ops-bedrock/Dockerfile.l1
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ COPY entrypoint-l1.sh /entrypoint.sh

VOLUME ["/db"]

ENTRYPOINT ["/bin/sh", "/entrypoint.sh"]
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
6 changes: 3 additions & 3 deletions ops-bedrock/entrypoint-l1.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash
set -exu

VERBOSITY=${GETH_VERBOSITY:-3}
Expand All @@ -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 \
Expand Down

0 comments on commit ba7d209

Please sign in to comment.