From 28ba0f5ba04ffcd58dbef8fb7ebf93d3b3d83f89 Mon Sep 17 00:00:00 2001 From: William Petit Date: Sun, 21 Jun 2020 14:24:19 +0200 Subject: [PATCH] =?UTF-8?q?Passage=20du=20owner=20de=20la=20BDD=20daddy=20?= =?UTF-8?q?=C3=A0=20l'utilisateur=20daddy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- misc/containers/postgres/initdb.d/init-databases.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/containers/postgres/initdb.d/init-databases.sh b/misc/containers/postgres/initdb.d/init-databases.sh index ddbbb85..9831c3a 100644 --- a/misc/containers/postgres/initdb.d/init-databases.sh +++ b/misc/containers/postgres/initdb.d/init-databases.sh @@ -12,4 +12,5 @@ psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" <<-E CREATE USER daddy WITH ENCRYPTED PASSWORD 'daddy'; CREATE DATABASE daddy; GRANT ALL PRIVILEGES ON DATABASE daddy TO daddy; + ALTER DATABASE daddy OWNER TO daddy; EOSQL \ No newline at end of file