Skip to content

Commit

Permalink
Merge pull request #9 from AndreKurait/removeS3Predelete
Browse files Browse the repository at this point in the history
Remove s3 pre-delete
  • Loading branch information
gregschohn authored Oct 7, 2024
2 parents f15a84b + a1acdc1 commit 863f034
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions DocumentsFromSnapshotMigration/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ S3_LOCAL_DIR=$(echo "$RFS_COMMAND" | sed -n 's/.*--s3-local-dir\s\+\("[^"]\+"\|[
LUCENE_DIR=$(echo "$RFS_COMMAND" | sed -n 's/.*--lucene-dir\s\+\("[^"]\+"\|[^ ]\+\).*/\1/p' | tr -d '"')
if [[ -n "$S3_LOCAL_DIR" ]]; then
echo "Will delete S3 local directory between runs: $S3_LOCAL_DIR"
rm -rf "$S3_LOCAL_DIR"
echo "Directory $S3_LOCAL_DIR has been deleted."
else
echo "--s3-local-dir argument not found in RFS_COMMAND. Will not delete S3 local directory between runs."
fi
Expand Down

0 comments on commit 863f034

Please sign in to comment.