Removed args to index.cgi check
parent
f995add94f
commit
613d1f831f
|
@ -6,10 +6,7 @@
|
||||||
# 4: Missing config file
|
# 4: Missing config file
|
||||||
|
|
||||||
CONFIG_FILE='/etc/wgapi/config'
|
CONFIG_FILE='/etc/wgapi/config'
|
||||||
if ! [ ${#} -eq 0 ]; then
|
if [ -f "${CONFIG_FILE}" ]; then
|
||||||
printf 'ERROR! Bad input: %s %s\n' "${0}" "${*}" >>"${LOGFILE}"
|
|
||||||
exit 3
|
|
||||||
fi & if [ -f "${CONFIG_FILE}" ]; then
|
|
||||||
printf 'ERROR! %s could not find %s!\n' "${0}" "${CONFIG_FILE}" >>"${LOGFILE}"
|
printf 'ERROR! %s could not find %s!\n' "${0}" "${CONFIG_FILE}" >>"${LOGFILE}"
|
||||||
exit 4
|
exit 4
|
||||||
fi; source "${CONFIG_FILE}"
|
fi; source "${CONFIG_FILE}"
|
||||||
|
|
Loading…
Reference in New Issue