Skip to content

Commit

Permalink
Update PSMDB tarball loc change for 7.0 (#735)
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumar-vs authored Sep 30, 2024
1 parent 31ac365 commit 28d775f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pmm-tests/psmdb_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export SERVICE_RANDOM_NUMBER=$(echo $((1 + $RANDOM % 9999)))

### Detect latest tarball link for specified mongodb_version: 7.0 | 6.0 | 5.0 | 4.4 | 4.2 at the moment
psmdb_latest=$(wget -q --post-data "version=percona-server-mongodb-${mongodb_version}" https://www.percona.com/products-api.php -O - | grep -oP "(?<=value\=\")[^\"]*" | sort -V | tail -1)
if [[ "$mongodb_version" == "7.0" || "$mongodb_version" == "4.4" ]]; then
if [[ "$mongodb_version" == "4.4" ]]; then
psmdb_tarball=$(wget -q --post-data "version_files=${psmdb_latest}&software_files=binary" https://www.percona.com/products-api.php -O - | jq -r '.[] | select(.link | contains("sha") | not) | .link' | grep glibc2\.17-minimal)
else
psmdb_tarball=$(wget -q --post-data "version_files=${psmdb_latest}&software_files=binary" https://www.percona.com/products-api.php -O - | jq -r '.[] | select(.link | contains("sha") | not) | .link' | grep focal-minimal)
Expand Down

0 comments on commit 28d775f

Please sign in to comment.