If the hose is moving outward then you haven't torqued the nut up enough. The olive and the barbed end to the hose will snug up together as the nut is tightened to prevent air entering or fluid escaping.
You will also need to bleed the system if you are sticking a new line on. The Avid bleed kit is an essential for this, however the upside is that the method used is hands down the most efficient way to get brakes bled - and don't let anyone convince you otherwise.
You will also need to bleed the system if you are sticking a new line on. The Avid bleed kit is an essential for this, however the upside is that the method used is hands down the most efficient way to get brakes bled - and don't let anyone convince you otherwise.