diff --git a/scripts/setup-adapters.sh b/scripts/setup-adapters.sh index bf5d99f41ace..ac36304394f9 100755 --- a/scripts/setup-adapters.sh +++ b/scripts/setup-adapters.sh @@ -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.