From b931a505c64c9f15270a9d473c9faf350f4e20e1 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Sat, 23 Mar 2019 05:09:05 +0100 Subject: [PATCH] fix restore --- scripts/restore | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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 #=================================================