Deploying a custom image on a new droplet, virtualmin/webmin on the image notices a new IP address assigned to the droplet. When this happens, on first login to virtualmin/webmin shows below message on the page -
YOUR SYSTEM’S PRIMARY IP ADDRESS APPEARS TO HAVE CHANGED FROM XXX.XXX.XXX.XX TO XX.XXX.XXX.XX. VIRTUAL SERVERS USING THE OLD ADDRESS MAY BE UNREACHABLE OR SERVE THE WRONG WEB CONTENT.
When I click on Update my IP address, it would then change IP address of the system and everything works fine. I want to achieve the same thing using a command so I can run this script over system boot process.
Does anyone know how to do this using a command on virtualmin/webmin?