#!/bin/sh
#
dat=$(date +%Y%m%d)
mv  /etc/yum.repos.d{,.bak-${dat}}
mkdir /etc/yum.repos.d/
cd /etc/yum.repos.d/
[ -f /usr/bin/wget ] || yum install http://devops.drugeyes.vip:8000/yum-repo/Packages/wget-1.14-18.el7_6.1.x86_64.rpm -y > /dev/null
wget http://devops.drugeyes.vip:8000/yum-repo/epel-7.repo
wget http://devops.drugeyes.vip:8000/yum-repo/centos-vault_updates.repo
wget http://devops.drugeyes.vip:8000/yum-repo/centos-vault_extras.repo
wget http://devops.drugeyes.vip:8000/yum-repo/centos-vault_7.9.2009_os_Packages.repo
wget http://devops.drugeyes.vip:8000/yum-repo/ISO.repo
wget http://devops.drugeyes.vip:8000/yum-repo/CUDA.repo
wget http://devops.drugeyes.vip:8000/yum-repo/ceph.repo
wget http://devops.drugeyes.vip:8000/yum-repo/docker.repo
echo "Success add yum repo"
