feat: add Dockerfile, entrypoint script, and EAP configuration for FreeRADIUS containerization
Build and Push Docker Image to Gitea Container Registry / build-and-push (push) Successful in 4m19s

This commit is contained in:
Tygozwolle
2026-07-24 15:09:42 +02:00
parent c7e18c76ac
commit 9a6b1131b1
3 changed files with 49 additions and 0 deletions
+8
View File
@@ -31,6 +31,14 @@ if [ -f "$CLIENTS_CONF" ]; then
sed -i "s/secret = .*/secret = $RADIUS_SECRET/" "$CLIENTS_CONF"
fi
# Generate FreeRADIUS EAP certificates if missing
if [ ! -f /etc/freeradius/3.0/certs/server.pem ]; then
echo "Generating FreeRADIUS EAP certificates..."
if [ -f /etc/freeradius/3.0/certs/bootstrap ]; then
/etc/freeradius/3.0/certs/bootstrap || true
fi
fi
# Ensure correct permissions for FreeRADIUS config directory
chown -R freerad:freerad /etc/freeradius/3.0/ || true