Fix cephadm binary URL to the numeric ceph version
download.ceph.com used to maintain named versions of ceph releases, which were hardlinked folders corresponding to the latest minor release from a stable branch; we've noticed that these folders can be deleted. Let's instead look for cephadm under the corresponding numeric release tag folder. Change-Id: Ic39b48fb2dd48f47d5b3c6165e4f4c6b1c47cc7d Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
This commit is contained in:
parent
b513540955
commit
24d9517b78
|
@ -135,11 +135,12 @@ function get_cephadm {
|
||||||
# $os_PACKAGE ("rpm") doesn't really matter. There is no ubuntu/debian
|
# $os_PACKAGE ("rpm") doesn't really matter. There is no ubuntu/debian
|
||||||
# equivalent being published by the ceph community.
|
# equivalent being published by the ceph community.
|
||||||
os_release="el9"
|
os_release="el9"
|
||||||
|
ceph_version=$(_get_ceph_version)
|
||||||
case $CEPH_RELEASE in
|
case $CEPH_RELEASE in
|
||||||
pacific|octopus)
|
pacific|octopus)
|
||||||
os_release="el8";;
|
os_release="el8";;
|
||||||
esac
|
esac
|
||||||
curl -O https://download.ceph.com/rpm-${CEPH_RELEASE}/${os_release}/noarch/cephadm
|
curl -f -O https://download.ceph.com/rpm-${ceph_version}/${os_release}/noarch/cephadm
|
||||||
$SUDO mv cephadm $TARGET_BIN
|
$SUDO mv cephadm $TARGET_BIN
|
||||||
$SUDO chmod +x $TARGET_BIN/cephadm
|
$SUDO chmod +x $TARGET_BIN/cephadm
|
||||||
echo "[GET CEPHADM] cephadm is now available"
|
echo "[GET CEPHADM] cephadm is now available"
|
||||||
|
|
Loading…
Reference in New Issue