Replaced cent8 with el8 for beter support
This commit is contained in:
6
conf.sh
6
conf.sh
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user