From 05407e5e2f29d2ee737d5f98337564c68f2f3e97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?E=CC=81ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Sat, 21 Oct 2023 12:19:08 +0200 Subject: [PATCH] Update install --- scripts/install | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/scripts/install b/scripts/install index 090dc81..076ee3c 100644 --- a/scripts/install +++ b/scripts/install @@ -9,6 +9,10 @@ source _common.sh source /usr/share/yunohost/helpers + + +jwt_secret=$(ynh_string_random --length=32) + #================================================= # NGINX CONFIGURATION #================================================= @@ -30,6 +34,15 @@ echo onlyoffice-documentserver onlyoffice/db-user string $db_user | debconf-set- echo onlyoffice-documentserver onlyoffice/db-pwd password $db_pwd | debconf-set-selections echo onlyoffice-documentserver onlyoffice/db-name string $db_name | debconf-set-selections +#RabbitMQ options +#echo onlyoffice-documentserver onlyoffice/rabbitmq-host string | debconf-set-selections +#echo onlyoffice-documentserver onlyoffice/rabbitmq-user string | debconf-set-selections +#echo onlyoffice-documentserver onlyoffice/rabbitmq-pwd password | debconf-set-selections + +#JWT options +echo onlyoffice-documentserver onlyoffice/jwt-enabled boolean true | debconf-set-selections +echo onlyoffice-documentserver onlyoffice/jwt-secret password $jwt_secret | debconf-set-selections + #================================================= # ADD A CONFIGURATION #=================================================