diskimage-builder/elements/centos7/pre-install.d/01-yum-repos

17 lines
299 B
Plaintext
Raw Normal View History

#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
set -x
fi
set -eu
set -o pipefail
cat << EOF > /etc/yum.repos.d/centos7-latest.repo
[centos7]
name=centos7
mirrorlist=http://mirrorlist.centos.org/?release=7&arch=\$basearch&repo=os&infra=\$infra
enabled=1
metadata_expire=7d
gpgcheck=0
EOF