mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-04-04 23:06:45 +00:00
Don't create interface if it already exists (#1487)
This is now needed because `set -e` was added to the calling script. Before, we simply allowed the command to fail silently. Fixes #1485
This commit is contained in:
@@ -11,6 +11,10 @@
|
||||
|
||||
setup_interface()
|
||||
{
|
||||
if [ ! -d "/sys/class/net/${WIREGUARD_INTERFACE_NAME}" ]; then
|
||||
ip link add ${WIREGUARD_INTERFACE_NAME} type wireguard
|
||||
fi
|
||||
|
||||
ip link add ${WIREGUARD_INTERFACE_NAME} type wireguard
|
||||
|
||||
if [ "$WIREGUARD_IPV4_ENABLED" = "true" ]; then
|
||||
|
||||
Reference in New Issue
Block a user