fix Bug 59826 - Fix database creation without onlyoffice owner ()

* fix Bug 59826 - Fix database creation without onlyoffice owner

* Fix an unnecessary space
This commit is contained in:
Evgeniy Antonyuk 2023-04-06 15:18:10 +05:00 committed by GitHub
parent 648ff7322f
commit f455bdf433
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions

View file

@ -358,9 +358,8 @@ create_postgresql_cluster(){
}
create_postgresql_db(){
sudo -u postgres psql -c "CREATE DATABASE $DB_NAME;"
sudo -u postgres psql -c "CREATE USER $DB_USER WITH password '"$DB_PWD"';"
sudo -u postgres psql -c "GRANT ALL privileges ON DATABASE $DB_NAME TO $DB_USER;"
sudo -u postgres psql -c "CREATE DATABASE $DB_NAME OWNER $DB_USER;"
}
create_db_tbl() {