2014-07-03 01:49:38 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2014-09-04 04:56:29 +00:00
|
|
|
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
|
|
|
|
set -x
|
|
|
|
fi
|
2014-07-03 01:49:38 +00:00
|
|
|
set -eu
|
|
|
|
set -o pipefail
|
|
|
|
|
|
|
|
cat << EOF > /etc/yum.repos.d/centos7-latest.repo
|
2015-04-11 01:30:42 +00:00
|
|
|
[centos7]
|
2014-07-03 01:49:38 +00:00
|
|
|
name=centos7
|
2015-04-11 01:30:42 +00:00
|
|
|
mirrorlist=http://mirrorlist.centos.org/?release=7&arch=\$basearch&repo=os&infra=\$infra
|
2014-07-03 01:49:38 +00:00
|
|
|
enabled=1
|
|
|
|
metadata_expire=7d
|
|
|
|
gpgcheck=0
|
|
|
|
EOF
|