Now I get it

master
Keith Irwin 2022-09-15 16:25:39 -06:00
parent 5da0c1cd1d
commit 10ca5097ba
Signed by: ki9
GPG Key ID: DF773B3F4A88DA86
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@
# 18: rDNS failed
CONFIG_FILE='/etc/wgapi/config'
if ! [ ${#} -eq 1 ] || [ ${#} -eq 2 ]; then
printf 'ERROR! Bad input: %s %s %s\n' "${0}" "${*}" "${#}">>"${LOGFILE}"
if ! [ ${#} -eq 2 ]; then # Only two because even an empty string querystring will be counted
printf 'ERROR! Bad input: %s %s\n' "${0}" "${*}" >>"${LOGFILE}"
exit 3
fi & if ! [ -x '/usr/bin/wg' ]; then
printf 'ERROR! %s could not find /usr/bin/wg\n' "${0}" >>"${LOGFILE}"