This commit is contained in:
Marc Beninca 2024-06-08 19:33:46 +02:00
parent 9450e7cb8a
commit e6f9e2d0dd
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

5
cd.sh
View file

@ -372,6 +372,7 @@ Acquire::https::Verify-Peer False;
"${CD_PM_APK}"|"${CD_PM_APT}") CD_PKG_SSH="openssh-client" ;; "${CD_PM_APK}"|"${CD_PM_APT}") CD_PKG_SSH="openssh-client" ;;
"${CD_PM_DNF}") CD_PKG_SSH="openssh-clients" ;; "${CD_PM_DNF}") CD_PKG_SSH="openssh-clients" ;;
"${CD_PM_PACMAN}") CD_PKG_SSH="openssh" ;; "${CD_PM_PACMAN}") CD_PKG_SSH="openssh" ;;
*)
esac esac
} }
@ -384,6 +385,7 @@ cd_set_packages_repositories () {
cd_set_packages_repositories__file="/etc/yum.repos.d/almalinux.repo" ;; cd_set_packages_repositories__file="/etc/yum.repos.d/almalinux.repo" ;;
"9") \ "9") \
cd_set_packages_repositories__file="/etc/yum.repos.d/almalinux-baseos.repo" ;; cd_set_packages_repositories__file="/etc/yum.repos.d/almalinux-baseos.repo" ;;
*)
esac esac
cd_sed "${cd_set_packages_repositories__file}" \ cd_sed "${cd_set_packages_repositories__file}" \
"|^mirrorlist|# mirrorlist|" \ "|^mirrorlist|# mirrorlist|" \
@ -412,6 +414,7 @@ deb ${CD_URL_CHOSEN}-security ${CD_OS_VERSION}-security main
cd_set_packages_repositories__file="/etc/yum.repos.d/Rocky-BaseOS.repo" ;; cd_set_packages_repositories__file="/etc/yum.repos.d/Rocky-BaseOS.repo" ;;
"9") \ "9") \
cd_set_packages_repositories__file="/etc/yum.repos.d/rocky.repo" ;; cd_set_packages_repositories__file="/etc/yum.repos.d/rocky.repo" ;;
*)
esac esac
cd_sed "${cd_set_packages_repositories__file}" \ cd_sed "${cd_set_packages_repositories__file}" \
"|^mirrorlist|# mirrorlist|" \ "|^mirrorlist|# mirrorlist|" \
@ -427,6 +430,7 @@ deb ${CD_URL_CHOSEN} ${CD_OS_VERSION}-updates main
deb ${CD_URL_CHOSEN} ${CD_OS_VERSION}-security main deb ${CD_URL_CHOSEN} ${CD_OS_VERSION}-security main
" "
;; ;;
*)
esac esac
} }
@ -437,6 +441,7 @@ cd_set_packages_configuration () {
"${CD_OS_DEBIAN}"|"${CD_OS_UBUNTU}") "${CD_OS_DEBIAN}"|"${CD_OS_UBUNTU}")
export DEBIAN_FRONTEND="noninteractive" export DEBIAN_FRONTEND="noninteractive"
;; ;;
*)
esac esac
} }