Verified Commit 08c1035c authored by Louis Abel's avatar Louis Abel 📺
Browse files

fix freeradius test

parent 879b03ac
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment