Skip to content

Commit

Permalink
Merge pull request #356 from infosiftr/double-quoted-adapter
Browse files Browse the repository at this point in the history
Remove quoting from `adapter:` in `database.yml`
  • Loading branch information
yosifkit authored Jan 15, 2025
2 parents c4cea8d + 2fcbcc3 commit 2ac7919
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 10 deletions.
7 changes: 6 additions & 1 deletion 5.0/alpine3.20/docker-entrypoint.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion 5.0/alpine3.21/docker-entrypoint.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion 5.0/bookworm/docker-entrypoint.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion 5.1/alpine3.20/docker-entrypoint.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion 5.1/alpine3.21/docker-entrypoint.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion 5.1/bookworm/docker-entrypoint.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion 6.0/alpine3.20/docker-entrypoint.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion 6.0/alpine3.21/docker-entrypoint.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion 6.0/bookworm/docker-entrypoint.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,12 @@ if [ -n "$isLikelyRedmine" ]; then
env="REDMINE_DB_${var^^}"
val="${!env}"
[ -n "$val" ] || continue
echo " $var: \"$val\"" >> config/database.yml
if [ "$var" != 'adapter' ]; then
# https://github.com/docker-library/redmine/issues/353 🙃
val='"'"$val"'"'
# (only add double quotes to every value *except* `adapter: xxx`)
fi
echo " $var: $val" >> config/database.yml
done
fi

Expand Down

0 comments on commit 2ac7919

Please sign in to comment.