envsubst is nice but may be not installed and can be confusing, so let's use perl (+ printenv) to replace our file content.
Alternatively provide a script to keep the post-inst script updated