For LXC containers, the IP adress you set in the configuration are then applied inside the LXC container.
So it is them same in the end ( NB: in your shell script you also read the IP adress from the configuration)
As long as your containers are not using DHCP, this should work.
If not, please...