2015-02-24 18:49:47 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
|
|
|
|
2016-12-08 23:30:56 +00:00
|
|
|
DIB_DISTRIBUTION_MIRROR=${DIB_DISTRIBUTION_MIRROR:-http://mirror.centos.org/centos}
|
|
|
|
|
2015-02-24 18:49:47 +00:00
|
|
|
cat << EOF > /etc/yum.repos.d/centos6-latest.repo
|
|
|
|
[rhel6]
|
|
|
|
name=centos6
|
2016-12-08 23:30:56 +00:00
|
|
|
baseurl=$DIB_DISTRIBUTION_MIRROR/6/os/x86_64/
|
2015-02-24 18:49:47 +00:00
|
|
|
enabled=1
|
|
|
|
metadata_expire=7d
|
|
|
|
gpgcheck=0
|
|
|
|
EOF
|