Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nixos/gitea: fix auth error for non-default database users
fixes fallout from <#266270>. a common idiom is to run the git server as user `git`, instead of `gitea`, with configuration like this: ```nix services.gitea.user = "git"; services.gitea.database.user = "git"; ``` after #266270, this requires setting `services.gitea.database.createDatabase = false` (as recommended by the assertion). however, this causes a few other fields relevant to database connection to no longer be set, and so that upgrade path would lead to a failed connection: ``` gitea-pre-start: cmd/migrate.go:40:runMigrate() [F] Failed to initialize ORM engine: pq: password authentication failed for user "git" ``` instead, preserve the old connection settings (socket path) to make this upgrade path work.
- Loading branch information