Skip to content

Commit

Permalink
Create datadir/blockchain earlier. Fixes #647
Browse files Browse the repository at this point in the history
  • Loading branch information
Gandalf-the-Grey committed Jan 24, 2024
1 parent cf0fc76 commit 4849737
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/docker_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ then
exit 1
fi

# Be sure this directory exists
sudo -Enu hived mkdir --mode=775 -p "$DATADIR/blockchain"

if sudo -Enu hived test ! -d "$SHM_DIR"
then
echo "Shared memory file directory (SHM_DIR) $SHM_DIR does not exist. Exiting."
Expand Down Expand Up @@ -57,9 +60,6 @@ cleanup () {
#trap cleanup EXIT
trap cleanup INT QUIT TERM

# Be sure this directory exists
sudo -Enu hived mkdir --mode=775 -p "$DATADIR/blockchain"

HIVED_ARGS=()
HIVED_ARGS+=("$@")
export HIVED_ARGS
Expand Down

0 comments on commit 4849737

Please sign in to comment.