mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-06-03 13:44:33 -04:00
11 lines
248 B
Plaintext
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
|
|
} |