The update script generated by this page must be run only on the VPS deployed from FINAL images.
0) Updating the IPv4 and IPv6 addresses
IP="$( ip -f inet a show eth0| grep inet| awk '{ print $2}' | cut -d/ -f1 )" IP6="$( ip -6 addr | grep inet6 | awk -F '[ \t]+|/' '{print $3}' | grep -v ^::1 )" sed -i "/old_defip=/c\old_defip=$IP" /etc/webmin/virtual-server/config sed -i "/old_defip=/c\old_defip=$IP" /etc/webmin/virtual-server/last-config sed -i "/old_defip6=/c\old_defip=$IP6" /etc/webmin/virtual-server/config sed -i "/old_defip6=/c\old_defip=$IP6" /etc/webmin/virtual-server/last-config
- Log in to post comments