Update 'Setup-Repo.sh'

This commit is contained in:
Bram Prieshof
2020-09-24 13:05:38 +02:00
parent c0c14e0ff6
commit fe507c90e2

View File

@@ -7,11 +7,11 @@ dist_name=$(grep -oP '(?<=^VERSION_CODENAME=).+' /etc/os-release | tr -d '"')
init () {
if [ "$osrel" = "ubu1804" ] || [ "$osrel" = "ubu2004" ] ; then
$PKGI software-properties-common gnupg
apt install -y --no-install-recommends software-properties-common gnupg
elif [ "$osrel" = "deb10" ]; then
$PKGI gnupg2 apt-transport-https lsb-release ca-certificates curl
apt install -y --no-install-recommends gnupg2 apt-transport-https lsb-release ca-certificates curl
elif [ "$osrel" = "cent8" ]; then
$PKGI gnupg
dnf --setopt=install_weak_deps=False --best gnupg
fi
}