chore: update scripts

This commit is contained in:
Tiara Rodney 2026-03-14 20:13:25 +01:00
parent cfb9b7c591
commit 62cb0f8afd
No known key found for this signature in database
GPG key ID: 5CD8EC1D46106723
7 changed files with 24 additions and 22 deletions

View file

@ -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"