From 2d162aff6d275e9ed2a24c14a90a027a1bcfed43 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 21 May 2021 14:28:04 +0200 Subject: [PATCH] Update upgrade --- scripts/upgrade | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/scripts/upgrade b/scripts/upgrade index 67c387f..6a2ebab 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -87,6 +87,11 @@ then ynh_setup_source --dest_dir=$final_path --source_id="$architecture" --keep="$final_path/$app.conf" fi +chmod 750 "$final_path" +chmod -R o-rwx "$final_path" +chmod +x "$final_path/miniflux" +chown -R $app:www-data "$final_path" + #================================================= # NGINX CONFIGURATION #================================================= @@ -109,17 +114,6 @@ ynh_script_progression --message="Configuring a systemd service..." --weight=2 ynh_add_systemd_config -#================================================= -# GENERIC FINALIZATION -#================================================= -# SECURE FILES AND DIRECTORIES -#================================================= -ynh_script_progression --message="Securing files and directories..." - -chmod 750 "$final_path" -chmod -R o-rwx "$final_path" -chown -R $app:www-data "$final_path" - #================================================= # INTEGRATE SERVICE IN YUNOHOST #=================================================