git.iko.soy/typeable/nixpkgs
on master help sign in
zonminder: Fix database name and username

PR #56889 messed up db and use naming while fixing the scope of the initialDatabases property. This patch fixes the issue.

commit56aa491ad7923a3b2113117ceb99465641bf6905 authorscaroo <scaroo@gmail.com> dateSat 9 Mar 2019, 17:11 (8 years ago) parentbbfd2be
1 file changed+2−2
nixos/modules/services/misc/zoneminder.nix+2−2
nixos/modules/services/misc/zoneminder.nix+2−2
@@ -49,8 +49,8 @@ let
4949 # Database
5050 ZM_DB_TYPE=mysql
5151 ZM_DB_HOST=${cfg.database.host}
52− ZM_DB_NAME=${if cfg.database.createLocally then user else cfg.database.username}
53− ZM_DB_USER=${cfg.database.username}
52+ ZM_DB_NAME=${cfg.database.name}
53+ ZM_DB_USER=${if cfg.database.createLocally then user else cfg.database.username}
5454 ZM_DB_PASS=${cfg.database.password}
5555
5656 # Web