From 2db993fa59cda3ac198cbe95235d0526490dbbf0 Mon Sep 17 00:00:00 2001 From: Keith Irwin Date: Sun, 11 Sep 2022 17:03:06 -0600 Subject: [PATCH] Fixed config file not found --- back/lib/wg_peer_list | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/back/lib/wg_peer_list b/back/lib/wg_peer_list index 6ffb808..bf1ddd7 100755 --- a/back/lib/wg_peer_list +++ b/back/lib/wg_peer_list @@ -14,10 +14,10 @@ CONFIG_FILE='/etc/wgapi/config' if [ -f "${CONFIG_FILE}" ]; then printf 'ERROR! %s Config file not found' "${0}" >>"${LOGFILE}" exit 6 -fi & if [ ${#} -eq 2 ]; then +fi; if [ ${#} -eq 2 ]; then printf 'ERROR! Bad usage: %s %s' "$0" "$*" >>"${LOGFILE}" 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}" exit 5 fi