Shock propagation in a one dimensional flow through deformable porous media