Skip to content

Commit

Permalink
scylla_current_repo: support diffrent $PRODUCT
Browse files Browse the repository at this point in the history
Support point to the correct download url for
diffrent scylla products
  • Loading branch information
fruch authored and penberg committed May 28, 2020
1 parent 9c26bdf commit e5da79c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/scylla_current_repo
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
VERSION=$(./SCYLLA-VERSION-GEN)
SCYLLA_VERSION=$(cat build/SCYLLA-VERSION-FILE)
SCYLLA_RELEASE=$(cat build/SCYLLA-RELEASE-FILE)

PRODUCT=$(cat build/SCYLLA-PRODUCT-FILE)

. /etc/os-release
print_usage() {
Expand Down Expand Up @@ -49,11 +49,11 @@ else
TARGET=`lsb_release -c|awk '{print $2}'`
fi
if [ "$TARGET" = "trusty" ] || [ "$TARGET" = "xenial" ]; then
echo http://downloads.scylladb.com/deb/ubuntu/scylla-$REPO_VERSION-$TARGET.list
echo http://downloads.scylladb.com/downloads/$PRODUCT/deb/ubuntu/scylla-$REPO_VERSION-$TARGET.list
elif [ "$TARGET" = "jessie" ]; then
echo http://downloads.scylladb.com/deb/debian/scylla-$REPO_VERSION-$TARGET.list
echo http://downloads.scylladb.com/downloads/$PRODUCT/deb/debian/scylla-$REPO_VERSION-$TARGET.list
elif [ "$TARGET" = "centos" ]; then
echo http://downloads.scylladb.com/rpm/centos/scylla-$REPO_VERSION.repo
echo http://downloads.scylladb.com/downloads/$PRODUCT/rpm/centos/scylla-$REPO_VERSION.repo
else
echo "Unsupported distribution."
exit 1
Expand Down

0 comments on commit e5da79c

Please sign in to comment.