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 #=================================================