A €7bn (£6.15bn) rescue is contingent on the airline becoming more eco-friendly, a minister says.