Skip to content
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

Merged
merged 5 commits into from
Dec 4, 2023

Conversation

hedrickbt
Copy link
Contributor

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

  • fixes #

Additional information

…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…
@github-actions github-actions bot added the moodle label Oct 6, 2023
@github-actions github-actions bot added the triage Triage is needed label Oct 6, 2023
Part 2 of 2 for --prefix support.  Using the new mdl_prefix variable.

Signed-off-by: Brooke Hedrick <brooke.t.hedrick@gmail.com>
@carrodher carrodher added the verify Execute verification workflow for these changes label Oct 8, 2023
@github-actions github-actions bot added in-progress and removed triage Triage is needed labels Oct 8, 2023
@bitnami-bot bitnami-bot removed the request for review from javsalgar October 8, 2023 10:36
@github-actions
Copy link

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.

@github-actions github-actions bot added the stale 15 days without activity label Oct 24, 2023
hedrickbt and others added 2 commits October 26, 2023 09:52
…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>
@github-actions github-actions bot removed the stale 15 days without activity label Oct 27, 2023
@hedrickbt hedrickbt requested a review from mdhont October 31, 2023 03:46
Copy link

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.

@github-actions github-actions bot added the stale 15 days without activity label Nov 16, 2023
@hedrickbt
Copy link
Contributor Author

hedrickbt commented Nov 20, 2023

Hello,

Is anything else needed from me? I have made the requested changes to the pull request.

-Brooke

@github-actions github-actions bot removed the stale 15 days without activity label Nov 21, 2023
Copy link
Contributor

@mdhont mdhont left a 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

@mdhont mdhont merged commit 5181a2b into bitnami:main Dec 4, 2023
9 checks passed
@github-actions github-actions bot added the solved label Dec 4, 2023
christian-scheible pushed a commit to christian-scheible/containers that referenced this pull request Dec 7, 2023
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
moodle solved verify Execute verification workflow for these changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants