File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ case ${CARDANO_NETWORK} in
60
60
# empty topology
61
61
echo ' {"Producers": []}' > ${CARDANO_TOPOLOGY}
62
62
# network start times
63
- sed -i " s/\" startTime\" : [0-9]*/\" startTime\" $( date +%s) /" \
63
+ sed -i " s/\" startTime\" : [0-9]*/\" startTime\" : $( date +%s) /" \
64
64
${CARDANO_CONFIG_BASE} /${CARDANO_NETWORK} /byron-genesis.json
65
65
sed -i " s/\" systemStart\" : \" .*\" /\" systemStart\" : \" $( date -u +%FT%TZ) \" /" \
66
66
${CARDANO_CONFIG_BASE} /${CARDANO_NETWORK} /shelley-genesis.json
@@ -138,6 +138,8 @@ if ! test -e ${CARDANO_DATABASE_PATH}/protocolMagicId; then
138
138
if [[ $( cd ${CARDANO_DATABASE_PATH} ; pwd -P) != $( pwd -P) /db ]]; then
139
139
mv -f db/* ${CARDANO_DATABASE_PATH} /
140
140
fi
141
+ else
142
+ mkdir -p ${CARDANO_DATABASE_PATH}
141
143
fi
142
144
elif [[ ${RESTORE_SNAPSHOT} == true ]]; then
143
145
echo " Detected populated ${CARDANO_DATABASE_PATH} ... skipping restore"
You can’t perform that action at this time.
0 commit comments