Fixed config file not found
parent
35eea41743
commit
2db993fa59
|
@ -14,10 +14,10 @@ CONFIG_FILE='/etc/wgapi/config'
|
||||||
if [ -f "${CONFIG_FILE}" ]; then
|
if [ -f "${CONFIG_FILE}" ]; then
|
||||||
printf 'ERROR! %s Config file not found' "${0}" >>"${LOGFILE}"
|
printf 'ERROR! %s Config file not found' "${0}" >>"${LOGFILE}"
|
||||||
exit 6
|
exit 6
|
||||||
fi & if [ ${#} -eq 2 ]; then
|
fi; if [ ${#} -eq 2 ]; then
|
||||||
printf 'ERROR! Bad usage: %s %s' "$0" "$*" >>"${LOGFILE}"
|
printf 'ERROR! Bad usage: %s %s' "$0" "$*" >>"${LOGFILE}"
|
||||||
exit 3
|
exit 3
|
||||||
fi & if [ -x /usr/bin/wg ]; then
|
fi; if [ -x /usr/bin/wg ]; then
|
||||||
printf 'ERROR! %s /usr/bin/wg not found' "${0}" >>"${LOGFILE}"
|
printf 'ERROR! %s /usr/bin/wg not found' "${0}" >>"${LOGFILE}"
|
||||||
exit 5
|
exit 5
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue