#!/bin/bash
-# Helper to get tarballs for releases
-# Does not do any placement, you must be on the destination directory.
-
-# There are two files it grabs, one with 'orig' and one without
+set -x
+# Helper to get tarball for releases
: ${2?"Usage: $0 \$release \$sha1 \$version"}
pushd /data/download.ceph.com/www/prerelease/ceph/tarballs
-if [ ! -f ceph_$version.orig.tar.gz ]; then
- wget https://chacra.ceph.com/binaries/ceph/$release/$sha1/ubuntu/noble/x86_64/flavors/default/ceph_$version.orig.tar.gz || wget https://chacra.ceph.com/binaries/ceph/$release/$sha1/ubuntu/jammy/x86_64/flavors/default/ceph_$version.orig.tar.gz
- wget https://chacra.ceph.com/binaries/ceph/$release/$sha1/ubuntu/noble/x86_64/flavors/default/ceph-$version.tar.gz || wget https://chacra.ceph.com/binaries/ceph/$release/$sha1/ubuntu/jammy/x86_64/flavors/default/ceph-$version.tar.gz
+if [[ ! -f ceph_${version}.tar.gz ]]; then
+ wget -q https://chacra.ceph.com/binaries/ceph/${release}/${sha1}/ubuntu/noble/x86_64/flavors/default/ceph_${version}-1noble.tar.gz \
+ || wget -q https://chacra.ceph.com/binaries/ceph/${release}/${sha1}/ubuntu/jammy/x86_64/flavors/default/ceph_${version}-1jammy.tar.gz
+
+ mv ceph_${version}*.tar.gz ceph-${version}.tar.gz
fi
popd
-