1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/glitchsoc_ynh.git synced 2024-09-03 19:15:59 +02:00

Add createdb right to mastodon postgre role

This commit is contained in:
nemsia 2018-06-13 12:19:22 +02:00
parent 8e1d57d0dd
commit a961856c7e

View file

@ -162,7 +162,7 @@ ynh_psql_dump_db() {
ynh_psql_create_user() {
user="$1"
pwd="$2"
sudo --login --user=postgres psql -c"CREATE USER $user WITH PASSWORD '$pwd';" postgres
sudo --login --user=postgres psql -c"CREATE USER $user WITH PASSWORD '$pwd' CREATEDB;" postgres
}
# Drop a user