Skip to content
This repository was archived by the owner on Dec 23, 2024. It is now read-only.

MYSQL_DATABASE hardcoded in entrypoint_apache.sh #51

Open
alesnav opened this issue Jul 14, 2020 · 1 comment
Open

MYSQL_DATABASE hardcoded in entrypoint_apache.sh #51

alesnav opened this issue Jul 14, 2020 · 1 comment

Comments

@alesnav
Copy link

alesnav commented Jul 14, 2020

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.

if [[ ! -e /var/lib/mysql/misp/users.ibd ]]; then

/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
@alesnav alesnav changed the title MYSQL_DATABASE harcoded in entrypoint_apache.sh MYSQL_DATABASE hardcoded in entrypoint_apache.sh Jul 14, 2020
@malvidin
Copy link

malvidin commented Oct 1, 2020

Potential duplicate of #45

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants