Fixed missing sudo
parent
58b40e5cbb
commit
b6c23955c9
|
@ -22,7 +22,7 @@ CONFIG_FILE='/etc/wgapi/config'
|
|||
exit 5; )
|
||||
|
||||
source "${CONFIG_FILE}"
|
||||
wg_output="$(/usr/bin/wg show "${TLD}" allowed-ips)" || (
|
||||
wg_output="$(sudo /usr/bin/wg show "${TLD}" allowed-ips)" || (
|
||||
printf 'ERROR! Wireguard failed!\n' >>"${LOGFILE}"
|
||||
exit 5; )
|
||||
user_peers="$(grep "${1%[.:]*}" <<<"${wg_output}" 2>/dev/null)"
|
||||
|
|
Loading…
Reference in New Issue