[bitnami/moodle] sql-script in post-init.d should use exising database environment variables #68054
Labels
moodle
solved
stale
15 days without activity
tech-issues
The user has a technical issue about an application
triage
Triage is needed
Name and Version
bitnami/moodle:4.4.1
What architecture are you using?
None
What steps will reproduce the bug?
What is the expected behavior?
The SQL script is applied to the moodle database
What do you see instead?
An error stating that mysql command could not succeeed.
Additional information
If the sql-mysql.sh script in /post-init.d/ used the MOODLE_DATABASE variables defined in the docker-compose.yaml file, then it was able to connect to the database using the same credentials as Moodle would connect to the database.
I would assume that the changes one would make, is limitied to the database that was initialized for moodle.
I use it for applying configuration during init instead of having to click-ops them for the installation of moodle.
The text was updated successfully, but these errors were encountered: