diff --git a/rel/overlays/bin/bootstrap b/rel/overlays/bin/bootstrap index 941a13f1d..53be9c75b 100755 --- a/rel/overlays/bin/bootstrap +++ b/rel/overlays/bin/bootstrap @@ -1,6 +1,8 @@ #!/bin/sh : "${WIREGUARD_INTERFACE_NAME:=wg-firezone}" +# Note: we keep legacy default values for those variables to avoid breaking existing deployments, +# but they will go away in the 0.8.0 release. : "${WIREGUARD_IPV4_ADDRESS:=10.3.2.1}" : "${WIREGUARD_IPV4_ENABLED:=true}" : "${WIREGUARD_IPV4_NETWORK:=10.3.2.0/24}" @@ -15,8 +17,6 @@ setup_interface() ip link add ${WIREGUARD_INTERFACE_NAME} type wireguard fi - ip link add ${WIREGUARD_INTERFACE_NAME} type wireguard - if [ "$WIREGUARD_IPV4_ENABLED" = "true" ]; then ip address replace ${WIREGUARD_IPV4_ADDRESS} dev ${WIREGUARD_INTERFACE_NAME} fi