mirror of
https://gitee.com/SuperManito/LinuxMirrors
synced 2025-11-14 05:10:26 +08:00
bug fix
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
## Author: SuperManito
|
## Author: SuperManito
|
||||||
## Modified: 2025-05-29
|
## Modified: 2025-06-04
|
||||||
## License: MIT
|
## License: MIT
|
||||||
## GitHub: https://github.com/SuperManito/LinuxMirrors
|
## GitHub: https://github.com/SuperManito/LinuxMirrors
|
||||||
## Website: https://linuxmirrors.cn
|
## Website: https://linuxmirrors.cn
|
||||||
@@ -863,7 +863,11 @@ function configure_docker_ce_mirror() {
|
|||||||
yum-config-manager -y --add-repo https://${SOURCE}/linux/${SOURCE_BRANCH}/docker-ce.repo
|
yum-config-manager -y --add-repo https://${SOURCE}/linux/${SOURCE_BRANCH}/docker-ce.repo
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
if [[ "${SYSTEM_JUDGMENT}" == "${SYSTEM_FEDORA}" ]]; then
|
||||||
|
dnf-3 config-manager -y --add-repo https://${SOURCE}/linux/${SOURCE_BRANCH}/docker-ce.repo
|
||||||
|
else
|
||||||
dnf config-manager -y --add-repo https://${SOURCE}/linux/${SOURCE_BRANCH}/docker-ce.repo
|
dnf config-manager -y --add-repo https://${SOURCE}/linux/${SOURCE_BRANCH}/docker-ce.repo
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
sed -i "s|https://download.docker.com|${WEB_PROTOCOL}://${SOURCE}|g" $Dir_YumRepos/docker-ce.repo
|
sed -i "s|https://download.docker.com|${WEB_PROTOCOL}://${SOURCE}|g" $Dir_YumRepos/docker-ce.repo
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ title: 一键脚本使换源更简单
|
|||||||
description: GNU/Linux 更换系统软件源脚本及 Docker 安装与换源脚本
|
description: GNU/Linux 更换系统软件源脚本及 Docker 安装与换源脚本
|
||||||
comments: true
|
comments: true
|
||||||
glightbox: false
|
glightbox: false
|
||||||
comments_description: 该评论区仅用于展示项目使用评价和经验分享,反馈问题或提出建议请前往<a href="/community">社区</a>
|
comments_description: 该评论区仅用于展示项目使用评价和经验分享,反馈问题或建议请前往<a href="/community">社区</a>或提起<a href="[/community](https://github.com/SuperManito/LinuxMirrors/issues)" target="_blank">Issues</a>
|
||||||
hide:
|
hide:
|
||||||
- navigation
|
- navigation
|
||||||
- toc
|
- toc
|
||||||
|
|||||||
Reference in New Issue
Block a user