Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Other dbs #42

Merged
merged 4 commits into from
Jul 9, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Allow setting the DB dialect on environment variables.
xihh87 committed Jun 21, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit ace8d13f8a7df00f296a38eb2000acd73be3016f
2 changes: 1 addition & 1 deletion root/etc/s6-overlay/s6-rc.d/svc-hedgedoc/run
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@

# if user is using our env variables set the DB_URL
if [[ -n ${DB_HOST+x} ]]; then
export CMD_DB_URL="mysql://${DB_USER}:${DB_PASS}@${DB_HOST}:${DB_PORT}/${DB_NAME}"
export CMD_DB_URL="${CMD_DB_DIALECT:-mysql}://${DB_USER}:${DB_PASS}@${DB_HOST}:${DB_PORT}/${DB_NAME}"
fi

# set env var for sqlite if db url and db_host unset