diff --git a/scripts/restore b/scripts/restore index b26565c..b86670b 100755 --- a/scripts/restore +++ b/scripts/restore @@ -62,15 +62,6 @@ ynh_restore_file "$config_path" # Restore state ynh_restore_file "$state_path" -#================================================= -# RESTORE USER RIGHTS -#================================================= - -# Restore permissions on app files -chown -R www-data:www-data $final_path -chown -R www-data:www-data $log_path -chown -R www-data:www-data $state_path - #================================================= # RESTORE THE PHP-FPM CONFIGURATION #================================================= @@ -93,6 +84,15 @@ ynh_install_app_dependencies z-push-common z-push-backend-caldav z-push-backend- ynh_restore_file "/etc/logrotate.d/$app" +#================================================= +# RESTORE USER RIGHTS +#================================================= + +# Restore permissions on app files +chown -R www-data:www-data $final_path +chown -R www-data:www-data $log_path +chown -R www-data:www-data $state_path + #================================================= # GENERIC FINALIZATION #=================================================