#!/bin/bash

cd /etc/yum.repos.d/
sed -i.bak -e 's/^mirrorlist/#mirrorlist/g' *.repo
sed -i.bak -e 's/^#baseurl/baseurl/g' *.repo
sed -i.bak -e 's/dl.rockylinux.org/ftp.cae.tntech.edu/g' *.repo
yum install https://ftp.cae.tntech.edu/ohpc-release-2-1.el8.x86_64.rpm
sed -i.bak -e 's/^mirrorlist/#mirrorlist/g' *.repo
sed -i.bak -e 's/^#baseurl/baseurl/g' *.repo
sed -i.bak -e 's/dl.rockylinux.org/ftp.cae.tntech.edu/g' *.repo
sed -i.bak -e 's#repos.openhpc.community/OpenHPC/2/CentOS_8#ftp.cae.tntech.edu/OpenHPC#g' OpenHPC.repo 
sed -i.bak -e 's#repos.openhpc.community/OpenHPC/2/updates/CentOS_8#ftp.cae.tntech.edu/OpenHPC-updates#g' OpenHPC.repo 
yum config-manager --set-enabled powertools
yum install docs-ohpc
