The first configuration is forced

This commit is contained in:
q3aql 2024-04-14 20:52:24 +02:00
parent 7800611d76
commit 9164a05729

View File

@ -99,6 +99,13 @@ if [ -z "${max_ip_blocklist}" ] ; then
fi fi
source /etc/blockauth/blockauth.conf 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" echo "blockauth: running process"
blockauth=0 blockauth=0
while [ ${blockauth} -eq 0 ] ; do while [ ${blockauth} -eq 0 ] ; do