Skip to content

Commit 8822f18

Browse files
committed
优化
1 parent f1aff1c commit 8822f18

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

DockerInstallation.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
## Author: SuperManito
3-
## Modified: 2026-01-01
3+
## Modified: 2026-01-06
44
## License: MIT
55
## GitHub: https://github.com/SuperManito/LinuxMirrors
66
## Website: https://linuxmirrors.cn
@@ -1201,7 +1201,9 @@ function configure_docker_ce_mirror() {
12011201
esac
12021202
else
12031203
# openEuler
1204-
if [[ "${SYSTEM_VERSION_ID_MAJOR}" -ge 22 ]]; then
1204+
if [[ "${SYSTEM_VERSION_ID_MAJOR}" -ge 24 ]]; then
1205+
target_version="10"
1206+
elif [[ "${SYSTEM_VERSION_ID_MAJOR}" -gt 22 ]]; then
12051207
target_version="9"
12061208
fi
12071209
fi

DockerInstallationLite.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22
## Author: SuperManito
3-
## Modified: 2025-12-06
3+
## Modified: 2026-01-06
44
## License: MIT
55
## GitHub: https://github.com/SuperManito/LinuxMirrors
66
## Website: https://linuxmirrors.cn
@@ -761,7 +761,9 @@ function configure_docker_ce_mirror() {
761761
esac
762762
else
763763
# openEuler
764-
if [[ "${SYSTEM_VERSION_ID_MAJOR}" -ge 22 ]]; then
764+
if [[ "${SYSTEM_VERSION_ID_MAJOR}" -ge 24 ]]; then
765+
target_version="10"
766+
elif [[ "${SYSTEM_VERSION_ID_MAJOR}" -gt 22 ]]; then
765767
target_version="9"
766768
fi
767769
fi

0 commit comments

Comments
 (0)