Replaced cent8 with el8 for beter support

This commit is contained in:
2020-12-09 13:30:28 +01:00
parent 810a46ad6a
commit ae4badf11c
2 changed files with 4 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ if [ -z ${shortdist+x} ]; then
shortdist=deb10
echo set
elif [[ "${dist}" == *"centos"* ]] && [[ "${dist_ver}" == *"8"* ]]; then
shortdist=cent8
shortdist=el8
echo set
else
echo "This os in not supported"
@@ -37,7 +37,7 @@ if [ "$shortdist" = "ubu1804" ] || [ "$shortdist" = "ubu2004" ] || [ "$shortdist
##Fetching Confgs
curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/config/apt/Universal_20auto-upgrades -o /etc/apt/apt.conf.d/20auto-upgrades > $OUTPUT 2>&1
curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/config/apt/"$LinVer"_50unattended-upgrades -o /etc/apt/apt.conf.d/50unattended-upgrades > $OUTPUT 2>&1
elif [ "$shortdist" = "cent8" ]; then
elif [ "$shortdist" = "el8" ]; then
##Fetching Confgs
curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/config/dnf/Cent8_automatic.conf -o /etc/dnf/automatic.conf > $OUTPUT 2>&1
curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/config/dnf/el8_automatic.conf -o /etc/dnf/automatic.conf > $OUTPUT 2>&1
fi

View File

@@ -41,7 +41,7 @@ elif [[ "${dist}" == *"centos"* ]] && [[ "${dist_ver}" == *"8"* ]]; then
PKGM="dnf"
PKGI="${PKGM} install --setopt=install_weak_deps=False --best -y"
PKGLIST="dnf"
shortdist=cent8
shortdist=el8
else
echo "This OS is not supported"
exit