From 98bc19cac2c205c07264f4bd2bfa658d87c06296 Mon Sep 17 00:00:00 2001 From: Jules Bertholet Date: Mon, 29 Mar 2021 23:54:30 -0400 Subject: [PATCH] Fix acl restore Change order of restore steps --- scripts/restore | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/restore b/scripts/restore index e6f8b5c..6aef7e0 100755 --- a/scripts/restore +++ b/scripts/restore @@ -64,6 +64,14 @@ ynh_script_progression --message="Recreating the dedicated system user..." --wei # Create the dedicated user (if not existing) ynh_system_user_create --username=$app +#================================================= +# REINSTALL DEPENDENCIES +#================================================= +ynh_script_progression --message="Reinstalling dependencies..." --weight=1 + +# Define and install dependencies +ynh_install_app_dependencies $pkg_dependencies + #================================================= # RESTORE USER RIGHTS #================================================= @@ -76,14 +84,6 @@ chmod -R g-w $final_path setfacl -n -m user:www-data:rx $final_path setfacl -n -R -m user:www-data:rx -m default:user:www-data:rx $final_path/public -#================================================= -# REINSTALL DEPENDENCIES -#================================================= -ynh_script_progression --message="Reinstalling dependencies..." --weight=1 - -# Define and install dependencies -ynh_install_app_dependencies $pkg_dependencies - #================================================= # SPECIFIC RESTORATION #=================================================