1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/z-push_ynh.git synced 2024-09-03 18:05:58 +02:00

fix restore

This commit is contained in:
yalh76 2019-03-23 05:09:05 +01:00
parent a2f9a9828d
commit b931a505c6

View file

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