From 2e0baa4590fccf218a1c381cc3074bcb1011ff7b Mon Sep 17 00:00:00 2001 From: Charlotte Van Petegem Date: Fri, 10 Jun 2022 21:14:21 +0200 Subject: [PATCH] Create database user with superuser rights in gamification devshell --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 33f6d549..dbed9f57 100644 --- a/flake.nix +++ b/flake.nix @@ -166,7 +166,7 @@ initdb --encoding=UTF8 --no-locale --no-instructions -U postgres echo "listen_addresses = ${"'"}${"'"}" >> $PGDATA/postgresql.conf echo "unix_socket_directories = '$PGDATA'" >> $PGDATA/postgresql.conf - echo "CREATE USER gamification2 WITH PASSWORD 'gamification2' CREATEDB;" | postgres --single -E postgres + echo "CREATE USER gamification2 WITH PASSWORD 'gamification2' CREATEDB SUPERUSER;" | postgres --single -E postgres ''; } {