hydra-module.nix: Don't create an admin user

[?]
Nov 6, 2013, 3:15 PM
TUGDJU23SQQKDEIUKEMAYVJVD24SSZ42OFZSKQPWDXOVLN7AMHAQC

Dependencies

  • [2] ASPNI2AO hydra-module.nix: Automatically create postgres db user for hydra and an admin hydra account
  • [3] D3MDJONY
  • [4] T4DBPQOF hydra-module: Run hydra-init during hydra-init.service

Change contents

  • edit in hydra-module.nix at line 197
    [3.264][2.698:1051]()
    ${config.services.postgresql.package}/bin/psql hydra << EOF
    BEGIN;
    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