From 0f6593b11bbe8f7b1626d62ea6a35c330f99ca56 Mon Sep 17 00:00:00 2001 From: Bram Prieshof Date: Wed, 2 Dec 2020 13:00:27 +0100 Subject: [PATCH] Fixed: incorect config path centos, rm pkglist on inst --- conf.sh | 2 +- installer.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/conf.sh b/conf.sh index 583c5d9..a066c90 100644 --- a/conf.sh +++ b/conf.sh @@ -39,5 +39,5 @@ if [ "$shortdist" = "ubu1804" ] || [ "$shortdist" = "ubu2004" ] || [ "$shortdist 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 ##Fetching Confgs - curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/config/dnf/Cent8_automatic.conf -o /etc/apt/apt.conf.d/50unattended-upgrades > $OUTPUT 2>&1 + curl --retry 7 --retry-delay 5 -s "$mrepo"/raw/branch/"$mbranch"/config/dnf/Cent8_automatic.conf -o /etc/dnf/automatic.conf > $OUTPUT 2>&1 fi \ No newline at end of file diff --git a/installer.sh b/installer.sh index 2869ee9..136d512 100644 --- a/installer.sh +++ b/installer.sh @@ -94,7 +94,8 @@ fi ##--------------------## msg " Preconfiguring" -$PKGM update +rm -f /tmp/pkg.list +$PKGM update -y $PKGM upgrade -y