Fixed missing sudo

master
Keith Irwin 2022-09-10 16:27:51 -06:00
parent 8869d5a8c4
commit cfe74158ca
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
1 changed files with 1 additions and 1 deletions

View File

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