Skip to content

main/nginx: prevent forking in the global scope

The _add_module function is called in the global scope and invokes grep. We generally want to avoid forking calls in the global scope if poossible, so replace the grep call with a case statement which achieves the same.

Verified that $_extra_flags remains the same (no duplicate entries).

Merge request reports