From 5d371293e0071c2aa9a69c2d75e0dedac9652e50 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 10 Dec 2025 08:32:50 +0000 Subject: [PATCH] Restore informative messages about manual Docker daemon configuration Co-authored-by: DerLinkman <62480600+DerLinkman@users.noreply.github.com> --- _modules/scripts/ipv6_controller.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/_modules/scripts/ipv6_controller.sh b/_modules/scripts/ipv6_controller.sh index 1d6da2a6f..19fa95667 100644 --- a/_modules/scripts/ipv6_controller.sh +++ b/_modules/scripts/ipv6_controller.sh @@ -141,6 +141,10 @@ docker_daemon_edit(){ else echo -e "${YELLOW}User declined Docker update – skipping Docker daemon configuration.${NC}" echo -e "${YELLOW}IPv6 will be disabled for mailcow.${NC}" + echo "" + echo -e "${YELLOW}If you change your mind later, please insert these changes manually to $DOCKER_DAEMON_CONFIG:${NC}" + echo "${MISSING[*]}" + echo "" return 1 fi fi @@ -187,6 +191,20 @@ EOF else echo -e "${YELLOW}User declined to create daemon.json – skipping Docker daemon configuration.${NC}" echo -e "${YELLOW}IPv6 will be disabled for mailcow.${NC}" + echo "" + echo -e "${YELLOW}If you change your mind later, please create $DOCKER_DAEMON_CONFIG with these settings:${NC}" + if [[ -n "$DOCKER_MAJOR" && "$DOCKER_MAJOR" -lt 27 ]]; then + echo ' "ipv6": true,' + echo ' "fixed-cidr-v6": "fd00:dead:beef:c0::/80",' + echo ' "ip6tables": true,' + echo ' "experimental": true' + elif [[ -n "$DOCKER_MAJOR" && "$DOCKER_MAJOR" -lt 28 ]]; then + echo ' "ipv6": true,' + echo ' "fixed-cidr-v6": "fd00:dead:beef:c0::/80"' + else + echo ' "ipv6": true' + fi + echo "" return 1 fi fi