From a51dc612765c38e95f56ffeae62f2f9a8c3486c0 Mon Sep 17 00:00:00 2001 From: Alexey Golubev Date: Wed, 1 Apr 2020 12:11:57 +0300 Subject: [PATCH] Fix db folder mapping for custom build --- run-document-server.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/run-document-server.sh b/run-document-server.sh index f8fe346..5359467 100755 --- a/run-document-server.sh +++ b/run-document-server.sh @@ -270,9 +270,9 @@ create_postgresql_cluster(){ } create_postgresql_db(){ - sudo -u postgres psql -c "CREATE DATABASE onlyoffice;" - sudo -u postgres psql -c "CREATE USER onlyoffice WITH password 'onlyoffice';" - sudo -u postgres psql -c "GRANT ALL privileges ON DATABASE onlyoffice TO onlyoffice;" + 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;" } create_db_tbl() {