hydra-module.nix: Don't create an admin user
[?]
Nov 6, 2013, 3:15 PM
TUGDJU23SQQKDEIUKEMAYVJVD24SSZ42OFZSKQPWDXOVLN7AMHAQCDependencies
- [2]
ASPNI2AOhydra-module.nix: Automatically create postgres db user for hydra and an admin hydra account - [3]
D3MDJONY - [4]
T4DBPQOFhydra-module: Run hydra-init during hydra-init.service
Change contents
- edit in hydra-module.nix at line 197
${config.services.postgresql.package}/bin/psql hydra << EOFBEGIN;INSERT INTO Users(userName, emailAddress, password) VALUES ('admin', '${cfg.notificationSender}', '$(echo -n $pass | sha1sum | cut -c1-40)');INSERT INTO UserRoles(userName, role) values('admin', 'admin');COMMIT;EOF