fix for OAUTH_ENABLED check #17
Reference in New Issue
Block a user
No description provided.
Delete Branch "patch_5.1.1_release"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@ -29,3 +29,1 @@{{ if eq (env "OAUTH_ENABLED") "1" }}file_env "OAUTH_APP_SECRET"{{ end }}if [ "$OAUTH_ENABLED" = "1" ]; thenIs there a reason you're not templating it? I would assume it would be better to stick to convention?
E.g.
The
.tmplin https://git.coopcloud.tech/coop-cloud/peertube/src/branch/main/entrypoint.sh.tmplAnother one of our weird recipe-isms 😂
Is this as simple as changing the file name to be end with .tmpl btw? @decentral1se
No reason, I was just working off of whatever was already there in the loomio recipe and didn't realize the convention is to have a .tmpl file for the entrypoint.
What are the benefits of it being a .tmpl file? Would you be ok with updating to .tmpl format in a separate change?
@ammaratef45 @jmakdah2 The advantage of the
.tmplfile is that you can inject values into it via the template engine (e.g. the{{ if eq (env "OAUTH_ENABLED") "1" }}syntax works). The.tmplfile naming is just convention also, the main thing required is thecompose.ymlsnippet i shared in #17 (comment) where you specify thetemplate_driver. It's ultimately up to y'all. I also have no strong feelings on how changes are done in this PR or whatever, up to you!thanks @decentral1se, I agree would be better to stick to convention, but it doesn't feel like this is impacting us much now so I can look into updating it with another change or separately after this PR!