Skip to content

Conversation

@hieu2102
Copy link

This PR fix #468

If redis container is started with a config file, the current docker-entrypoint.sh script will still generate the redis-server command with --loadmodule flag.
If a CONFIG REWRITE is issued (for example, by Sentinel client), the loadmodule entries will be written to the config file. Restarting the container will then result in a module initialization error (due to modules being loaded twice).

This PR add a check to skip --loadmodule flag if the container is started with a config file, and the loadmodule $module entry is already present.

…sent in config file

Signed-off-by: hieu2102 <hieund2102@gmail.com>
@jit-ci
Copy link

jit-ci bot commented Jan 26, 2026

Hi, I’m Jit, a friendly security platform designed to help developers build secure applications from day zero with an MVS (Minimal viable security) mindset.

In case there are security findings, they will be communicated to you as a comment inside the PR.

Hope you’ll enjoy using Jit.

Questions? Comments? Want to learn more? Get in touch with us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant