From: Jason Dillaman Date: Mon, 28 Aug 2017 23:15:14 +0000 (-0400) Subject: tcmu-runner: added missing distro release X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0eed85b6f3986936073833667e50b7e435eea72f;p=ceph-build.git tcmu-runner: added missing distro release Signed-off-by: Jason Dillaman --- diff --git a/tcmu-runner/build/build_rpm b/tcmu-runner/build/build_rpm index 33c07af0..7a052e4d 100644 --- a/tcmu-runner/build/build_rpm +++ b/tcmu-runner/build/build_rpm @@ -9,6 +9,8 @@ if test "$DISTRO" != "fedora" -a "$DISTRO" != "centos" -a "$DISTRO" != "rhel"; t exit 0 fi +RELEASE="$(lsb_release --short -r | cut -d '.' -f 1)" # sytem release + ## Get the desired CEPH_BRANCH/CEPH_SHA1 ceph repo # Get .repo file from appropriate shaman build REPO_URL="https://shaman.ceph.com/api/repos/ceph/$CEPH_BRANCH/$CEPH_SHA1/$DISTRO/$RELEASE/flavors/default/repo"