mirror of
https://github.com/community-scripts/ProxmoxVED.git
synced 2026-03-10 03:34:59 +00:00
Merge pull request #1175 from pshankinclarke/fix-verb_ip6
Fix `verb_ip6` crash when `IPV6_METHOD` is unset
This commit is contained in:
@@ -52,7 +52,7 @@ catch_errors
|
||||
verb_ip6() {
|
||||
set_std_mode # Set STD mode based on VERBOSE
|
||||
|
||||
if [ "$IPV6_METHOD" == "disable" ]; then
|
||||
if [ "${IPV6_METHOD:-}" = "disable" ]; then
|
||||
msg_info "Disabling IPv6 (this may affect some services)"
|
||||
mkdir -p /etc/sysctl.d
|
||||
$STD tee /etc/sysctl.d/99-disable-ipv6.conf >/dev/null <<EOF
|
||||
|
||||
Reference in New Issue
Block a user