From 780f91f886d41ef3dc579b585bd86fa7bb244c79 Mon Sep 17 00:00:00 2001 From: chwoa <115662104+chwoa@users.noreply.github.com> Date: Tue, 15 Aug 2023 00:36:48 +0100 Subject: [PATCH] Update alpine-install.func Remove sysctl -p from customize, as it runs already if ipv6 is disabled Add/start sysctl service if ipv6 is disabled. --- 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..66f67d16 100644 --- a/misc/alpine-install.func +++ b/misc/alpine-install.func @@ -23,7 +23,8 @@ verb_ip6() { silent() { "$@" >/dev/null 2>&1; } if [ "$DISABLEIPV6" == "yes" ]; then echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf - $STD sysctl -p + $STD rc-update add sysctl + $STD /etc/init.d/sysctl start 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