As noted in your other PR you need to do something like the following to remove old lines, otherwise you will append duplicate lines forever:

    sed -i -e '/^COREOS_PUBLIC_IPV4=/d' $ENV