Skip to content

Commit

Permalink
Merge pull request #6247 from MinaProtocol/fix/copy-keys
Browse files Browse the repository at this point in the history
copy if directory exists
  • Loading branch information
mergify[bot] authored Oct 3, 2020
2 parents 406c3fe + 1f6dcee commit 75996e3
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions scripts/rebuild-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,20 @@ do
done
done

# Genesis Ledger Copy
for f in /tmp/coda_cache_dir/genesis*; do
cp /tmp/coda_cache_dir/genesis* "${BUILDDIR}/var/lib/coda/."
cp /tmp/s3_cache_dir/genesis* "${BUILDDIR}/var/lib/coda/."
done
# Genesis Ledger/proof Copy
if [ -d /tmp/coda_cache_dir ]; then
for f in /tmp/coda_cache_dir/genesis*; do
cp /tmp/coda_cache_dir/genesis* "${BUILDDIR}/var/lib/coda/."
done
fi

# Copy genesis Ledger/proof if they were downloaded from s3
if [ -d /tmp/s3_cache_dir ]; then
for f in /tmp/s3_cache_dir/genesis*; do
cp /tmp/s3_cache_dir/genesis* "${BUILDDIR}/var/lib/coda/."
done
fi


#copy config.json
cp ../genesis_ledgers/phase_three/config.json "${BUILDDIR}/var/lib/coda/config_${GITHASH_CONFIG}.json"
Expand Down

0 comments on commit 75996e3

Please sign in to comment.