Skip to content

Commit

Permalink
fixup! set db name to service name
Browse files Browse the repository at this point in the history
  • Loading branch information
erikarvstedt committed Aug 21, 2022
1 parent d1392d9 commit f910879
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/lndhub-go.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ let

configFile = builtins.toFile "lndhub-go-conf" (lib.generators.toKeyValue {} cfg.settings);

dbName = "lndhubgo";
dbName = "lndhub-go";
in {
inherit options;

Expand All @@ -75,7 +75,7 @@ in {
ensureUsers = [
{
name = cfg.user;
ensurePermissions."DATABASE ${dbName}" = "ALL PRIVILEGES";
ensurePermissions."DATABASE \"${dbName}\"" = "ALL PRIVILEGES";
}
];
};
Expand Down

0 comments on commit f910879

Please sign in to comment.