From 7d344c78a562ee0c16a6c20a0b93fb2e8c6a7223 Mon Sep 17 00:00:00 2001 From: DerFossibaer Date: Sat, 15 Jan 2022 17:01:47 +0100 Subject: [PATCH] onlyoffice --- src/onlyoffice/install-service.sh | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/src/onlyoffice/install-service.sh b/src/onlyoffice/install-service.sh index 7e81b7b..6cae315 100644 --- a/src/onlyoffice/install-service.sh +++ b/src/onlyoffice/install-service.sh @@ -1,18 +1,26 @@ source /root/zamba.conf source /root/constants-service.conf -ONLYOFFICE_DB_PASSWORD=$(source /root/postgresql.sh 13 $ONLYOFFICE_DB_NAME $ONLYOFFICE_DB_USER) -source /root/rabbitmq-server.sh + +ONLYOFFICE_DB_PASS=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys CB2DE8E5 echo "deb https://download.onlyoffice.com/repo/debian squeeze main" > /etc/apt/sources.list.d/onlyoffice.list -apt update +apt update + +DEBIAN_FRONTEND=noninteractive DEBIAN_PRIORITY=critical apt install -y -qq postgresql rabbitmq-server libstdc++6 supervisor + +su postgres < /root/onlyoffice.credentials ONLYOFFICE_DB_HOST=$ONLYOFFICE_DB_HOST ONLYOFFICE_DB_NAME=$ONLYOFFICE_DB_NAME ONLYOFFICE_DB_USER=$ONLYOFFICE_DB_USER -ONLYOFFICE_DB_PASSWORD=$ONLYOFFICE_DB_PASSWORD +ONLYOFFICE_DB_PASS=$ONLYOFFICE_DB_PASS EOF /etc/nginx/conf.d/ds.conf