added /etc/hosts handling...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2024-10-19 21:32:42 +03:00
parent 53aedbb1d8
commit 3efb4f4b31

View File

@ -206,6 +206,16 @@ buildAssets
# XXX /etc/hosts???
# /etc/hosts
if xreadYes "# Update /etc/hosts?" HOSTS ; then
@ cp /etc/hosts{,.bak}
@ cp /etc/hosts{,.new}
@ sed -i \
-e 's/^[^#].* \(pve.local.*\)$/'${HOST_ADMIN_IP}'\1/' \
/etc/hosts.new
reviewApplyChanges /etc/hosts
fi
# DNS
if xreadYes "# Update DNS?" DNS ; then
file=/etc/resolv.conf