mirror of https://github.com/tteck/Proxmox.git
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.
This commit is contained in:
parent
59b4e28413
commit
780f91f886
|
@ -23,7 +23,8 @@ verb_ip6() {
|
||||||
silent() { "$@" >/dev/null 2>&1; }
|
silent() { "$@" >/dev/null 2>&1; }
|
||||||
if [ "$DISABLEIPV6" == "yes" ]; then
|
if [ "$DISABLEIPV6" == "yes" ]; then
|
||||||
echo "net.ipv6.conf.all.disable_ipv6 = 1" >>/etc/sysctl.conf
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -117,7 +118,6 @@ motd_ssh() {
|
||||||
}
|
}
|
||||||
|
|
||||||
customize() {
|
customize() {
|
||||||
$STD sysctl -p
|
|
||||||
if [[ "$PASSWORD" == "" ]]; then
|
if [[ "$PASSWORD" == "" ]]; then
|
||||||
msg_info "Customizing Container"
|
msg_info "Customizing Container"
|
||||||
bash -c "passwd -d root" >/dev/null 2>&1
|
bash -c "passwd -d root" >/dev/null 2>&1
|
||||||
|
|
Loading…
Reference in New Issue