Kyoo/deployment/kyoo.install
2021-04-10 17:45:36 +02:00

11 lines
248 B
Plaintext

post_install() {
sudo -u postgres psql <<- "EOF"
DO $$
BEGIN
CREATE ROLE kyoo WITH CREATEDB LOGIN PASSWORD 'kyooPassword';
EXCEPTION WHEN DUPLICATE_OBJECT THEN
RAISE NOTICE 'not creating role kyoo -- it already exists';
END
$$;
EOF
}