Create database user with superuser rights in gamification devshell

This commit is contained in:
Charlotte Van Petegem 2022-06-10 21:14:21 +02:00
parent c2bf3cb352
commit 2e0baa4590
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -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
'';
}
{