chore: update scripts
This commit is contained in:
parent
cfb9b7c591
commit
62cb0f8afd
7 changed files with 24 additions and 22 deletions
|
|
@ -1,10 +1,10 @@
|
|||
#!/bin/sh
|
||||
# Remove local WireGuard interface. Requires root.
|
||||
# Remove local WireGuard interface.
|
||||
set -eu
|
||||
|
||||
WG_IFACE=wg-dev
|
||||
|
||||
wg-quick down ${WG_IFACE} 2>/dev/null || true
|
||||
rm -f /etc/wireguard/${WG_IFACE}.conf
|
||||
sudo wg-quick down ${WG_IFACE} 2>/dev/null || true
|
||||
sudo rm -f /etc/wireguard/${WG_IFACE}.conf
|
||||
|
||||
echo "==> WireGuard ${WG_IFACE} removed"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue