This commit is contained in:
Super Manito
2025-03-16 20:16:18 +08:00
parent ec9c0b0c3b
commit abb267a2f2

View File

@@ -827,15 +827,12 @@ function configure_docker_ce_mirror() {
if [[ "${SYSTEM_JUDGMENT}" != "${SYSTEM_FEDORA}" ]]; then if [[ "${SYSTEM_JUDGMENT}" != "${SYSTEM_FEDORA}" ]]; then
local target_version local target_version
case "${SYSTEM_VERSION_NUMBER_MAJOR}" in case "${SYSTEM_VERSION_NUMBER_MAJOR}" in
7 | 8 | 9) 7 | 8 | 9 | 10)
target_version="${SYSTEM_VERSION_NUMBER_MAJOR}" target_version="${SYSTEM_VERSION_NUMBER_MAJOR}"
;; ;;
10)
## 跳过尚未正式推出的 10 版本
target_version="9"
;;
*) *)
target_version="9" # 使用最新的版本 ## 目前红帽系衍生系统还没有普及 10 版本
target_version="9" # 使用较新的版本
;; ;;
esac esac
sed -i "s|\$releasever|${target_version}|g" $Dir_YumRepos/docker-ce.repo sed -i "s|\$releasever|${target_version}|g" $Dir_YumRepos/docker-ce.repo