From caceac8fadc22c28da281b5a7c5ec585b137a24e 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 16:20:04 +0200 Subject: [PATCH] cleaning --- manifest.toml | 2 +- scripts/backup | 1 + scripts/install | 10 ---------- 3 files changed, 2 insertions(+), 11 deletions(-) diff --git a/manifest.toml b/manifest.toml index d730bb7..692e035 100644 --- a/manifest.toml +++ b/manifest.toml @@ -59,7 +59,7 @@ ram.runtime = "50M" main.url = "/" [resources.apt] - packages = "postgresql, postgresql-contrib, libstdc++6, rabbitmq-server" + packages = "postgresql, postgresql-contrib, libstdc++6" extras.ttf.repo = "deb http://deb.debian.org/debian/ bullseye main contrib" extras.ttf.key = "https://ftp-master.debian.org/keys/release-bullseye.asc" diff --git a/scripts/backup b/scripts/backup index 9c6cfce..7c6e003 100644 --- a/scripts/backup +++ b/scripts/backup @@ -26,6 +26,7 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" #================================================= ynh_backup --src_path="/etc/onlyoffice" + ynh_backup --src_path="/var/lib/onlyoffice/documentserver/App_Data/cache/files" --not_mandatory #================================================= diff --git a/scripts/install b/scripts/install index 076ee3c..17de47c 100644 --- a/scripts/install +++ b/scripts/install @@ -9,8 +9,6 @@ source _common.sh source /usr/share/yunohost/helpers - - jwt_secret=$(ynh_string_random --length=32) #================================================= @@ -67,14 +65,6 @@ ynh_script_progression --message="Generating fonts..." /usr/bin/documentserver-generate-allfonts.sh 2>/dev/null -#================================================= -# SEND A README FOR THE ADMIN -#================================================= -ynh_script_progression --message="Sending a readme for the admin..." - -jwt_token=$(documentserver-jwt-status.sh | sed "3q;d" | cut -d "-" -f 2 | tr -d ' ') -ynh_app_setting_set --app=$app --key=jwt_token --value=$jwt_token - #================================================= # END OF SCRIPT #=================================================