From 05cb4455d88c170b3e268ea02e65834024da0b3d Mon Sep 17 00:00:00 2001 From: Giuseppe Attardi <giuseppe.attardi@garr.it> Date: Fri, 12 Oct 2018 01:53:35 +0000 Subject: [PATCH] Added patch. --- install-Debian.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 install-Debian.patch diff --git a/install-Debian.patch b/install-Debian.patch new file mode 100644 index 0000000..4345327 --- /dev/null +++ b/install-Debian.patch @@ -0,0 +1,19 @@ +*** ../install-Debian.sh 2018-10-12 01:40:11.042997798 +0000 +--- install-Debian.sh 2018-10-07 09:16:34.771790762 +0000 +*************** +*** 335,341 **** + + if ! sudo -i -u postgres psql -lqt | cut -d \| -f 1 | grep -q onlyoffice; then + sudo -i -u postgres psql -c "CREATE DATABASE onlyoffice;" +! sudo -i -u postgres psql -c "CREATE USER onlyoffice WITH password 'onlyoffice';" + sudo -i -u postgres psql -c "GRANT ALL privileges ON DATABASE onlyoffice TO onlyoffice;" + fi + +--- 335,341 ---- + + if ! sudo -i -u postgres psql -lqt | cut -d \| -f 1 | grep -q onlyoffice; then + sudo -i -u postgres psql -c "CREATE DATABASE onlyoffice;" +! sudo -i -u postgres psql -c "CREATE USER onlyoffice WITH password '$ONLYOFFICE_DOCUMENT_SERVER_PWD';" + sudo -i -u postgres psql -c "GRANT ALL privileges ON DATABASE onlyoffice TO onlyoffice;" + fi + -- GitLab