From 08c1035c5f6d5e00786a407a112021315de6f507 Mon Sep 17 00:00:00 2001 From: nazunalika Date: Mon, 5 Jul 2021 15:35:12 -0700 Subject: [PATCH] fix freeradius test --- func/core/pkg_freeradius/10-test-freeradius.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/func/core/pkg_freeradius/10-test-freeradius.sh b/func/core/pkg_freeradius/10-test-freeradius.sh index 3e99e9b..4480e86 100755 --- a/func/core/pkg_freeradius/10-test-freeradius.sh +++ b/func/core/pkg_freeradius/10-test-freeradius.sh @@ -9,9 +9,11 @@ rocky Cleartext-Password := "rocky" EOF r_log "freeradius" "Testing..." +systemctl start radiusd.service +sleep 1 echo "User-Name=rocky,User-Password=rocky " | radclient -x localhost:1812 auth testing123 | grep -q 'Access-Accept' r_checkExitStatus $? cp /etc/raddb/users.backup /etc/raddb/users rm -rf /etc/raddb/users.backup -service radiusd stop +systemctl stop radiusd.service