More in Remodeling
Turn off the gas. Remove the threaded pipe leading from the temperature pressure relief (TPR) valve and replace it with a new copper pipe. This new pipe should only be threaded at one end to avoid the misconception of trying to cap off the end.
Remove the flexible gas line. Replace it with the new line that has a protective polymer coating on it. The new gas line should terminate no further than 2' off the ground, and no closer than 6" to the ground. Once all the new connections are snug, turn the gas back on.