DCSO / MISP-dockerized-server

https://github.com/DCSO/MISP-dockerized
BSD 3-Clause "New" or "Revised" License
4 stars 8 forks source link

MYSQL_DATABASE hardcoded in entrypoint_apache.sh #51

Open alesnav opened 4 years ago

alesnav commented 4 years ago

When the name of MySQL Database is something different from misp, the main container does not work since the Apache check is looking for a file in a harcoded path.

https://github.com/DCSO/MISP-dockerized-server/blob/62d58ad05281529799962bab8440c43735082b3a/2.4.125-ubuntu/files/entrypoint_apache.sh#L265

/var/lib/mysql/misp/users.ibd should be /var/lib/mysql/${MYSQL_DATABASE}/users.ibd

In addition, MYSQL_DATABASE variable is not declared in defaults section and should be there (f.e., after line 42):

[ -z "$MYSQL_DATABASE" ] && MYSQL_DATABASE=misp
malvidin commented 4 years ago

Potential duplicate of #45