Fixed missing sudo
parent
8869d5a8c4
commit
cfe74158ca
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue