From cfe74158cabf0e182ce2496d002e95bf81a9fdbf Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Sat, 10 Sep 2022 16:27:51 -0600 Subject: [PATCH] Fixed missing sudo --- back/lib/wg_peer_del | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/back/lib/wg_peer_del b/back/lib/wg_peer_del index a83db01..3a0cffb 100755 --- a/back/lib/wg_peer_del +++ b/back/lib/wg_peer_del @@ -22,7 +22,7 @@ fi; if ! [ -f "${CONFIG_FILE}" ]; then fi source "${CONFIG_FILE}" -if ! res="$(/usr/bin/wg set "${TLD}" peer "${1}" remove)"; then +if ! res="$(sudo /usr/bin/wg set "${TLD}" peer "${1}" remove)"; then printf 'ERROR! Wireguard failed: %s\n' "${res}" >>"${LOGFILE}" exit 6 fi