Skip to content

Commit

Permalink
Allow replacing installed Minio package on Linux (facebookincubator#1…
Browse files Browse the repository at this point in the history
…0044)

Summary:
Allowing replace of minio package for branch 1.1.1

Fixes: facebookincubator#10043

How was this patch tested?
I ran a build with this fix and now it proceeds further and does not fail at `rpm -i` minio step.

Pull Request resolved: facebookincubator#10044

Reviewed By: pedroerp

Differential Revision: D58508448

Pulled By: kagamiori

fbshipit-source-id: e8e1ff638c9af5a009e76651ac5b4545a77f2a08
  • Loading branch information
Deepa8 authored and facebook-github-bot committed Jun 13, 2024
1 parent 54841b2 commit 2da1dd0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion scripts/setup-adapters.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,15 @@ function install_aws_deps {
# We need this specific version of Minio for testing.
if [[ "$OSTYPE" == linux-gnu* ]]; then
wget https://dl.min.io/server/minio/release/linux-amd64/archive/minio-20220526054841.0.0.x86_64.rpm
rpm -i minio-20220526054841.0.0.x86_64.rpm
if yum list installed minio >/dev/null 2>&1;then
if prompt "Do you want to replace the installed Minio with version minio-20220526054841.0.0.x86_64.rpm needed for S3 tests?"; then
rpm -i --replacepkgs minio-20220526054841.0.0.x86_64.rpm
else
echo "Minio version minio-20220526054841.0.0.x86_64.rpm needed for S3 tests is not installed."
fi
else
rpm -i minio-20220526054841.0.0.x86_64.rpm
fi
rm minio-20220526054841.0.0.x86_64.rpm
fi
# minio will have to approved under the Privacy & Security on MacOS on first use.
Expand Down

0 comments on commit 2da1dd0

Please sign in to comment.