mirror of
https://github.com/ceph/ceph
synced 2024-12-30 15:33:31 +00:00
e1c39fbfec
Specify either --release name (to get the latest) or --version x.y.z to get a specific version. Adapt to updated locations on download.ceph.com so that we don't need to know the release name for a specific x.y.z release. Signed-off-by: Sage Weil <sage@redhat.com>
36 lines
947 B
Bash
Executable File
36 lines
947 B
Bash
Executable File
#!/bin/bash -ex
|
|
|
|
SCRIPT_NAME=$(basename ${BASH_SOURCE[0]})
|
|
SCRIPT_DIR=$(dirname ${BASH_SOURCE[0]})
|
|
CEPHADM_SRC_DIR=${SCRIPT_DIR}/../../../src/cephadm
|
|
CEPHADM=${CEPHADM_SRC_DIR}/cephadm
|
|
|
|
# this is a pretty weak test, unfortunately, since the
|
|
# package may also be in the base OS.
|
|
function test_install_uninstall() {
|
|
( sudo apt update && \
|
|
sudo apt -y install cephadm && \
|
|
sudo $CEPHADM install && \
|
|
sudo apt -y remove cephadm ) || \
|
|
( sudo yum -y install cephadm && \
|
|
sudo $CEPHADM install && \
|
|
sudo yum -y remove cephadm ) || \
|
|
( sudo dnf -y install cephadm && \
|
|
sudo $CEPHADM install && \
|
|
sudo dnf -y remove cephadm )
|
|
}
|
|
|
|
sudo $CEPHADM -v add-repo --release octopus
|
|
test_install_uninstall
|
|
sudo $CEPHADM -v rm-repo
|
|
|
|
sudo $CEPHADM -v add-repo --dev master
|
|
test_install_uninstall
|
|
sudo $CEPHADM -v rm-repo
|
|
|
|
sudo $CEPHADM -v add-repo --release 15.1.1
|
|
test_install_uninstall
|
|
sudo $CEPHADM -v rm-repo
|
|
|
|
echo OK.
|