Werk #22149 · Sep 16, 26
omd config: report failures with a non-zero exit code
Previously omd config set, omd config show and omd config change
printed an error message and then exited with code 0. Scripts wrapping these
commands could not tell a successful configuration change from a failed one, so
a typo in a variable name or a hook that failed to activate went unnoticed.
These commands now exit with code 1 whenever they report an error, for example:
- an unknown configuration variable
- an invalid value for a variable
- an unknown
omd configsubcommand - a configuration hook that failed to activate
- an attempt to change a variable while the site is still running
omd config show and omd config change now also report every problem they ran
into instead of stopping at the first one.
Details
- Class:
- Bug Fixes
- Level:
- Prominent
- Component:
- OMD
- Versions:
- 3.0.0b1Not yet releasedAll Editions