cancel execution of empty config

This commit is contained in:
deflax 2023-11-09 19:19:46 -05:00
parent 163ccbd03f
commit 1b212745de
2 changed files with 5 additions and 2 deletions

View file

@ -22,8 +22,6 @@ Tested on Debian 12 bookworm
# Server Tools # 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 ./wgstats.sh - show peer stats similar based on wg show all dump
./wgldap.sh - tail the log of the wgldapsync service ./wgldap.sh - tail the log of the wgldapsync service

View file

@ -1,5 +1,10 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [ ! -f config ]; then
echo "] Create a config file based on config.dist"
exit 1
fi
source config source config
check_root() { check_root() {