From 4081752f39f8f94115afc1fb77f65c5014aa159b Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 6 Aug 2021 11:47:30 +0200 Subject: [PATCH] Fix --- scripts/install | 1 + scripts/restore | 2 ++ scripts/upgrade | 2 ++ 3 files changed, 5 insertions(+) diff --git a/scripts/install b/scripts/install index 268a041..716c815 100644 --- a/scripts/install +++ b/scripts/install @@ -76,6 +76,7 @@ ynh_script_progression --message="Installing config file..." --weight=2 mkdir -p /etc/loolwsd ynh_add_config --template="../conf/loolwsd.xml" --destination="/etc/loolwsd/loolwsd.xml" chown lool: "/etc/loolwsd/loolwsd.xml" +chmod 640 "/etc/loolwsd/loolwsd.xml" #================================================= # INSTALL DEPENDENCIES diff --git a/scripts/restore b/scripts/restore index 3f17ffa..c5b61ea 100644 --- a/scripts/restore +++ b/scripts/restore @@ -52,7 +52,9 @@ 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" +chmod 640 "/etc/loolwsd/loolwsd.xml" #================================================= # SPECIFIC RESTORATION diff --git a/scripts/upgrade b/scripts/upgrade index 01232fd..4dd15fd 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -77,7 +77,9 @@ ynh_add_nginx_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" +chmod 640 "/etc/loolwsd/loolwsd.xml" #================================================= # UPGRADE DEPENDENCIES