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