Skip to content

Add a warning for cases where WORDPRESS_CONFIG_EXTRA will not take effect #342

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

Merged

Conversation

tianon
Copy link
Member

@tianon tianon commented Oct 9, 2018

Closes #333

If WORDPRESS_CONFIG_EXTRA is set, wp-config.php already exists, and the contents of WORDPRESS_CONFIG_EXTRA do not already exist in the existing wp-config.php, this will print a warning (which then points to #333, which includes discussion of workarounds for folks who need this value to be updated more dynamically).

@yosifkit yosifkit merged commit 668fe24 into docker-library:master Oct 10, 2018
@yosifkit yosifkit deleted the WORDPRESS_CONFIG_EXTRA-warning branch October 10, 2018 19:47
tianon added a commit to infosiftr/stackbrew that referenced this pull request Oct 11, 2018
- `ghost`: 2.2.2
- `joomla`: 3.8.13
- `memcached`: 1.5.11
- `openjdk`: 12-ea+15
- `php`: 7.3.0RC3
- `postgres`: 11rc1
- `redis`: 5.0-rc6
- `rocket.chat`: 0.70.4
- `wordpress`: `WORDPRESS_CONFIG_EXTRA` warning (docker-library/wordpress#342)
@pabloleone
Copy link

Sorry but that's a terrible solution and the discussion linked doesn't provide a solution... so the official WordPress images aren't working for WordPress. Adding multisite env vars isn't possible! that's a shame!

Could do we find a better solution? It was working before, why has it been changed?

@tianon
Copy link
Member Author

tianon commented Jan 19, 2021

Ignoring the poor tone of your message (which I'll ask you to keep more respectful in the future), you'll likely be interested in #557, which implements this differently such that updates to the value will apply retroactively.

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.

Changes to WORDPRESS_CONFIG_EXTRA ignored unless wp-config.php is deleted
3 participants