From 88092fa6132dba4d2b94db826220437fb9cc8b2a Mon Sep 17 00:00:00 2001 From: tteckster Date: Mon, 14 Aug 2023 21:23:58 -0400 Subject: [PATCH] Update alpine-install.func tweak disable_ipv6 --- misc/alpine-install.func | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/misc/alpine-install.func b/misc/alpine-install.func index d1eb439d..3fd39278 100644 --- a/misc/alpine-install.func +++ b/misc/alpine-install.func @@ -22,8 +22,9 @@ verb_ip6() { else STD="silent"; fi silent() { "$@" >/dev/null 2>&1; } if [ "$DISABLEIPV6" == "yes" ]; then + $STD sysctl -w net.ipv6.conf.all.disable_ipv6=1 echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf - $STD sysctl -p + $STD rc-update add sysctl default fi } @@ -117,7 +118,6 @@ motd_ssh() { } customize() { - $STD sysctl -p if [[ "$PASSWORD" == "" ]]; then msg_info "Customizing Container" bash -c "passwd -d root" >/dev/null 2>&1