From 9164a057298f73ae9b7109e0a45ea856c1709e6f Mon Sep 17 00:00:00 2001 From: q3aql Date: Sun, 14 Apr 2024 20:52:24 +0200 Subject: [PATCH] The first configuration is forced --- blockauth | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/blockauth b/blockauth index ccdf28e..a42f99f 100755 --- a/blockauth +++ b/blockauth @@ -99,6 +99,13 @@ if [ -z "${max_ip_blocklist}" ] ; then fi source /etc/blockauth/blockauth.conf +# Force edit configuration file +if [ "${valid_users}" == "test1 test2" ] ; then + echo "blockauth: you must first configure the file /etc/blockauth/blockauth.conf" + echo "blockauth: process stopped" + exit +fi + echo "blockauth: running process" blockauth=0 while [ ${blockauth} -eq 0 ] ; do