Make delorean.repo overrideable
Make the delorean.repo file name overrideable via $DELOREAN_REPO_FILE since Delorean Kilo uses a different repo file name than Delorean Trunk. For example: http://trunk.rdoproject.org/kilo/centos7/current/delorean-kilo.repo Change-Id: I71723d174197c209ec892b14cf057500b4d82083
This commit is contained in:
parent
1714eea73a
commit
7d4b9a2aed
|
@ -2,8 +2,10 @@
|
|||
set -e
|
||||
set -o xtrace
|
||||
|
||||
export DELOREAN_REPO_FILE=${DELOREAN_REPO_FILE:-"delorean.repo"}
|
||||
|
||||
if [ -n "$DELOREAN_REPO_URL" ]; then
|
||||
curl $DELOREAN_REPO_URL/delorean.repo -o /etc/yum.repos.d/delorean.repo
|
||||
curl $DELOREAN_REPO_URL/$DELOREAN_REPO_FILE -o /etc/yum.repos.d/$DELOREAN_REPO_FILE
|
||||
else
|
||||
echo "Please configure a DELOREAN_REPO_URL."
|
||||
exit 1
|
||||
|
|
Loading…
Reference in New Issue