Should we be slightly cleverer here and e.g. only replace $RANDOM_TEXT in files in the src directory with the random string? That way we could make sure the text was put somewhere valid (e.g. in a comment in a src file etc.) where it won't stop the app starting (which might be required by later workloads that want to actually do something with the started app).