Skip to content

Commit d025282

Browse files
authored
Merge pull request #110 from blinklabs-io/fix/database-path-db
fix: mithril/database path when it ends in /db
2 parents 02747b9 + a129eaf commit d025282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/run-node

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ mkdir -p $(dirname ${CARDANO_SOCKET_PATH})
9292
if ! test -e ${CARDANO_DATABASE_PATH}/protocolMagicId; then
9393
echo "Detected empty ${CARDANO_DATABASE_PATH}"
9494
if [[ ${RESTORE_SNAPSHOT} == true ]]; then
95-
mkdir -p ${CARDANO_DATABASE_PATH}
95+
mkdir -p $(dirname ${CARDANO_DATABASE_PATH})
9696
cd $(dirname ${CARDANO_DATABASE_PATH})
9797
export AGGREGATOR_ENDPOINT GENESIS_VERIFICATION_KEY SNAPSHOT_DIGEST
9898
echo "Starting: /usr/local/bin/mithril-client snapshot download ${SNAPSHOT_DIGEST}"

0 commit comments

Comments
 (0)