Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions uninstall_wireguard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ VYATTA_SESSION=$(cli-shell-api getSessionEnv $$)
eval $VYATTA_SESSION
export vyatta_sbindir=$VYATTA_SBIN

# Get installed WireGuard version
INSTALLED_VERSION=$(dpkg-query --show --showformat='${Version}' wireguard 2> /dev/null || true)

# If WireGuard configuration exists
if $($VYATTA_API existsActive interfaces wireguard); then
# Remove running WireGuard configuration
Expand Down