-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bitnami/moodle] Handle --prefix (table prefix) being overridden via MOODLE_INSTALL_EXTRA_ARGS #51278
Conversation
…TRA_ARGS At the moment libmoodle.sh assumes a table prefix of the default mdl_ . When someone overrides this with the --prefix=xxx, then there are errors with the sql statements in libmoodle.sh that reference tables with mdl_.... Signed-off-by: Brooke Hedrick <brooke.t.hedrick@gmail.com>
[bitnami/moodle] Handle --prefix (table prefix) being overridden via MOODLE_INSTALL_EX…
Part 2 of 2 for --prefix support. Using the new mdl_prefix variable. Signed-off-by: Brooke Hedrick <brooke.t.hedrick@gmail.com>
This Pull Request has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thank you for your contribution. |
…dle.sh Co-authored-by: Michiel <mdhont79@gmail.com> Signed-off-by: Brooke Hedrick <brooke.t.hedrick@gmail.com>
simplified version Signed-off-by: Brooke Hedrick <brooke.t.hedrick@gmail.com>
This Pull Request has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thank you for your contribution. |
Hello, Is anything else needed from me? I have made the requested changes to the pull request. -Brooke |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm! Thanks for your contribution
…MOODLE_INSTALL_EXTRA_ARGS (bitnami#51278) * Handle --prefix (table prefix) being overridden via MOODLE_INSTALL_EXTRA_ARGS At the moment libmoodle.sh assumes a table prefix of the default mdl_ . When someone overrides this with the --prefix=xxx, then there are errors with the sql statements in libmoodle.sh that reference tables with mdl_.... Signed-off-by: Brooke Hedrick <brooke.t.hedrick@gmail.com> * Update libmoodle.sh Part 2 of 2 for --prefix support. Using the new mdl_prefix variable. Signed-off-by: Brooke Hedrick <brooke.t.hedrick@gmail.com> * Update bitnami/moodle/4.2/debian-11/rootfs/opt/bitnami/scripts/libmoodle.sh Co-authored-by: Michiel <mdhont79@gmail.com> Signed-off-by: Brooke Hedrick <brooke.t.hedrick@gmail.com> * Update libmoodle.sh simplified version Signed-off-by: Brooke Hedrick <brooke.t.hedrick@gmail.com> --------- Signed-off-by: Brooke Hedrick <brooke.t.hedrick@gmail.com> Co-authored-by: Michiel <mdhont79@gmail.com>
Description of the change
Capture the --prefix value from MOODLE_INSTALL_EXTRA_ARGS. Use that value when running sql statements to update the moodle database instead of assuming mdl_.
Benefits
Allows support for --prefix which makes it easier to migrate from an existing moodle install to a container based one.
Possible drawbacks
Applicable issues
Additional information