Skip to content

Commit

Permalink
test: configure centos7 repos
Browse files Browse the repository at this point in the history
  • Loading branch information
WanzenBug committed Jul 5, 2024
1 parent 8f2cf98 commit a9a574a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/provision.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ if command -v apt-get ; then
elif command -v dnf ; then
dnf install -y rsync hostname
elif command -v yum ; then
is_centos7() {
. /etc/os-release
[ "$ID" = "centos" ] && [ "$VERSION_ID" -eq 7 ]
}
if is_centos7 ; then
sed -e 's/^mirrorlist=/#mirrorlist=/' -e 's%^#baseurl=http://mirror.centos.org%baseurl=http://vault.centos.org%' -i /etc/yum.repos.d/*.repo
fi
yum install -y rsync hostname
fi
Expand Down

0 comments on commit a9a574a

Please sign in to comment.