diff options
-rw-r--r-- | nixos/modules/services/databases/postgresql.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/services/databases/postgresql.nix b/nixos/modules/services/databases/postgresql.nix index 59c9325ca907f..3e16b5907dd0d 100644 --- a/nixos/modules/services/databases/postgresql.nix +++ b/nixos/modules/services/databases/postgresql.nix @@ -333,7 +333,7 @@ in # Wait for PostgreSQL to be ready to accept connections. ExecStartPost = let - setupScript = pkgs.writeScript "postgresql-setup" '' + setupScript = pkgs.writeScript "postgresql-setup" ('' #!${pkgs.runtimeShell} -e PSQL="${pkgs.utillinux}/bin/runuser -u ${cfg.superUser} -- psql --port=${toString cfg.port}" @@ -360,7 +360,7 @@ in $PSQL -tAc 'GRANT ${permission} ON ${database} TO "${user.name}"' '') user.ensurePermissions)} '') cfg.ensureUsers} - ''; + ''); in "+${setupScript}"; } |