From 1b212745de9c534a85307d542290e5c5fff3f668 Mon Sep 17 00:00:00 2001 From: deflax Date: Thu, 9 Nov 2023 19:19:46 -0500 Subject: [PATCH] cancel execution of empty config --- README.md | 2 -- init.sh | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a73d976..95a1335 100644 --- a/README.md +++ b/README.md @@ -22,8 +22,6 @@ Tested on Debian 12 bookworm # Server Tools -./gen-ip-database.sh - generate an ip pool for wireguard peers - ./wgstats.sh - show peer stats similar based on wg show all dump ./wgldap.sh - tail the log of the wgldapsync service diff --git a/init.sh b/init.sh index f2a77d7..e52bf37 100755 --- a/init.sh +++ b/init.sh @@ -1,5 +1,10 @@ #!/usr/bin/env bash +if [ ! -f config ]; then + echo "] Create a config file based on config.dist" + exit 1 +fi + source config check_root() {