From 690d511e54bc39e0534183a85dfd17015235430b Mon Sep 17 00:00:00 2001 From: DerLinkman Date: Tue, 5 Aug 2025 16:36:35 +0200 Subject: [PATCH] reuse DOCKER_MAJOR Variable in ip6_controller --- _modules/scripts/ipv6_controller.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_modules/scripts/ipv6_controller.sh b/_modules/scripts/ipv6_controller.sh index ca227bcd3..308f953f3 100644 --- a/_modules/scripts/ipv6_controller.sh +++ b/_modules/scripts/ipv6_controller.sh @@ -41,7 +41,7 @@ docker_daemon_edit(){ ! _has_kv ipv6 true && MISSING+=("ipv6: true") ! grep -Eq '"fixed-cidr-v6"\s*:\s*".+"' "$DOCKER_DAEMON_CONFIG" \ && MISSING+=('fixed-cidr-v6: "fd00:dead:beef:c0::/80"') - if [[ -n "$docker_version" && "$docker_version" -ge 27 ]]; then + if [[ -n "$DOCKER_MAJOR" && "$DOCKER_MAJOR" -ge 27 ]]; then _has_kv ipv6 true && ! _has_kv ip6tables true && MISSING+=("ip6tables: true") ! _has_kv experimental true && MISSING+=("experimental: true") fi