diff --git a/scripts/restore b/scripts/restore index 4e97e3b..e883b71 100644 --- a/scripts/restore +++ b/scripts/restore @@ -20,8 +20,7 @@ sudo yunohost app checkurl $domain$path -a $app || ynh_die "The path ${domain}${ db_pass=$(ynh_app_setting_get $app mysqlpwd) # Restore sources & data -final_path=/var/www/$app -ynh_backup "www" "$final_path" +ynh_restore_file "$final_path" # Restore permissions sudo chown -R root:root $final_path