From 1c3219cf16383f9fa533af69a45728cbc649f187 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 14 Feb 2023 14:01:22 +0100 Subject: [PATCH] reorder --- manifest.toml | 4 ++-- scripts/restore | 12 ++++-------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/manifest.toml b/manifest.toml index 3d425ea..a64f28c 100644 --- a/manifest.toml +++ b/manifest.toml @@ -43,8 +43,8 @@ ram.runtime = "50M" default = "matrix.org" [install.init_main_permission] - help.en = "A public application means that anyone can access it. Note that this application provides just files (html, javascript, images, etc.)" - help.fr = "Une application publique signifie que n'importe qui peut y accéder. Notez que cette application ne fournit que des fichiers (html, javascript, images, etc.)" + help.en = "'visitors' permission means that anyone can access it." + help.fr = "Autoriser les 'Visiteurs' signifie que n'importe qui peut y accéder." type = "group" default = "visitors" diff --git a/scripts/restore b/scripts/restore index ed2f094..4777bc4 100644 --- a/scripts/restore +++ b/scripts/restore @@ -26,6 +26,10 @@ ynh_script_progression --message="Restoring the app main directory..." --weight= ynh_restore_file --origin_path="$install_dir" +# Set permissions to app files +chmod -R o-rwx "$install_dir" +chown -R $app:www-data "$install_dir" + #================================================= # GENERIC FINALIZATION #================================================= @@ -35,14 +39,6 @@ ynh_script_progression --message="Reloading NGINX web server..." --weight=1 ynh_systemd_action --service_name=nginx --action=reload -#================================================= -# SECURE FILES AND DIRECTORIES -#================================================= - -# Set permissions to app files -chmod -R o-rwx "$install_dir" -chown -R $app:www-data "$install_dir" - #================================================= # END OF SCRIPT #=================================================