Skip to content

Commit

Permalink
chore: add fix to director not found
Browse files Browse the repository at this point in the history
chore: add fix to director not found
  • Loading branch information
rjan90 committed Sep 17, 2024
1 parent 699bbd1 commit 4058c0f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ansible/setup_fildev_network.bash
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,13 @@ preseal_metadata=$(mktemp -d)
# and then downloads the final sector metadata for each preminer
ansible-playbook -i $hostfile lotus_devnet_prepare.yml -e local_preminer_metadata=${preseal_metadata} --diff "${ansible_args[@]}"

# Copy additional preseals to the temporary directory
cp additional_preseals/pre-seal-*.json ${preseal_metadata}/
# Copy additional preseals to the temporary directory if they exist
if [ -d "@additional_preseals" ] && [ "$(ls -A @additional_preseals)" ]; then
cp @additional_preseals/pre-seal-*.json ${preseal_metadata}/
echo "Copied additional preseals to ${preseal_metadata}"
else
echo "No additional preseals found in @additional_preseals directory"
fi

genpath=$(mktemp -d)

Expand Down

0 comments on commit 4058c0f

Please sign in to comment.