From de6708272bcd2d0a98d9d08c6c0940643436e30d Mon Sep 17 00:00:00 2001 From: Patrick Spek Date: Fri, 5 Jan 2024 12:22:37 +0100 Subject: Add a little more verbosity --- playbooks.d/vpn-wireguard/playbook.bash | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'playbooks.d') diff --git a/playbooks.d/vpn-wireguard/playbook.bash b/playbooks.d/vpn-wireguard/playbook.bash index 22addf6..8fc8128 100644 --- a/playbooks.d/vpn-wireguard/playbook.bash +++ b/playbooks.d/vpn-wireguard/playbook.bash @@ -39,6 +39,7 @@ playbook_add() { playbook_sync # Enable the wireguard interface + info "$BASHTARD_PLAYBOOK" "Enabling wireguard interface $interface" systemctl enable --now "wg-quick@$interface.service" } @@ -91,6 +92,7 @@ playbook_sync() { [[ "$BASHTARD_COMMAND" == "add" ]] && return # Refresh the wireguard interface + info "$BASHTARD_PLAYBOOK" "Reloading wireguard interface $interface" systemctl reload "wg-quick@$interface.service" } @@ -99,7 +101,8 @@ playbook_del() { interface="$(config "$BASHTARD_PLAYBOOK.interface" "wg0")" + info "$BASHTARD_PLAYBOOK" "Disabling wireguard interface $interface" systemctl disable --now "wg-quick@$interface.service" - rm -f -- "$(config "fs.etcdir")/wireguard/$interface.conf" + rm -fv -- "$(config "fs.etcdir")/wireguard/$interface.conf" pkg uninstall wireguard } -- cgit v1.1