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