From d79c3798c905b6f80475f477252f81675d4351cf Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 6 Aug 2021 10:09:07 +0200 Subject: [PATCH] fix --- scripts/install | 2 ++ scripts/restore | 1 + scripts/upgrade | 2 ++ 3 files changed, 5 insertions(+) diff --git a/scripts/install b/scripts/install index c10b7be..268a041 100644 --- a/scripts/install +++ b/scripts/install @@ -67,6 +67,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port #================================================= # CONFIGURE ONLYOFFICE #================================================= +ynh_script_progression --message="Installing config file..." --weight=2 # Turns out we need to create/copy this file BEFORE the actual .deb install, # otherwise stupid collabora will expect to find a certificate file in its own @@ -74,6 +75,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port # because we're in a reverse proxy context... mkdir -p /etc/loolwsd ynh_add_config --template="../conf/loolwsd.xml" --destination="/etc/loolwsd/loolwsd.xml" +chown lool: "/etc/loolwsd/loolwsd.xml" #================================================= # INSTALL DEPENDENCIES diff --git a/scripts/restore b/scripts/restore index aee7195..3f17ffa 100644 --- a/scripts/restore +++ b/scripts/restore @@ -52,6 +52,7 @@ ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf" ynh_script_progression --message="Restoring the configuration..." --weight=3 ynh_restore_file --origin_path="/etc/loolwsd/loolwsd.xml" +chown lool: "/etc/loolwsd/loolwsd.xml" #================================================= # SPECIFIC RESTORATION diff --git a/scripts/upgrade b/scripts/upgrade index cf43bf1..01232fd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -74,8 +74,10 @@ ynh_add_nginx_config #================================================= # UPGRADE CONFIG #================================================= +ynh_script_progression --message="Upgrading config file..." --weight=2 ynh_add_config --template="../conf/loolwsd.xml" --destination="/etc/loolwsd/loolwsd.xml" +chown lool: "/etc/loolwsd/loolwsd.xml" #================================================= # UPGRADE DEPENDENCIES