restic fix;

This commit is contained in:
Usman Nasir 2020-09-08 20:25:21 +05:00
parent 321d9f6d68
commit 6962f951f2
2 changed files with 3 additions and 13 deletions

View File

@ -418,18 +418,8 @@ EOF
## Copr for restic
cat << EOF > /etc/yum.repos.d/copr.repo
[restic]
name=Copr repo for restic owned by copart
baseurl=https://download.copr.fedorainfracloud.org/results/copart/restic/epel-7-$basearch/
type=rpm-md
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://download.copr.fedorainfracloud.org/results/copart/restic/pubkey.gpg
repo_gpgcheck=0
enabled=1
enabled_metadata=1
EOF
yum install yum-plugin-copr -y
yum copr enable copart/restic -y
## IUS Repo

View File

@ -2036,7 +2036,7 @@ milter_default_action = accept
if os.path.exists(CentOSPath):
if self.distro == centos:
command = 'yum --enablerepo=restic install restic -y'
command = 'yum install restic -y'
preFlightsChecks.call(command, self.distro, command, command, 1, 0, os.EX_OSERR)
elif self.distro == cent8: