lirantal / daloradius

daloRADIUS is an advanced RADIUS web management application for managing hotspots and general-purpose ISP deployments. It features user management, graphical reporting, accounting, a billing engine, and integrates with OpenStreetMap for geolocation. The system is based on FreeRADIUS with which it shares access to the backend database.
http://www.daloradius.com
GNU General Public License v2.0
680 stars 340 forks source link

Empty environment MYSQL_ROOT_PASSWORD #535

Open carlos-herrer opened 5 months ago

carlos-herrer commented 5 months ago

Describe the bug Hello, I was using the docker compose of daloradius that works fine. On my case, I trying to use a databases outside from the docker and note the following.

The function init_database try to create a new databases but the environment is never setting.

To Reproduce Steps to reproduce the behavior:

  1. Remove/comment the docker databases ( services: radius-mysql:*****)
  2. Change the environment to the data from databases outside for the services radius-web and radius.
  3. All started but when you try to login the daloradius web it's broken.
  4. See error

    use docker exec -it radius-web bash chmod +x init.sh ./init.sh see that ask for the root password and the enviroment vars never used.

In my case the external database was mysql.