From 3efb4f4b3109ace3fc0dbf549c8d6bd464b0429a Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 19 Oct 2024 21:32:42 +0300 Subject: [PATCH] added /etc/hosts handling... Signed-off-by: Alex A. Naanou --- host/make.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/host/make.sh b/host/make.sh index dce0ef7..f540bcb 100755 --- a/host/make.sh +++ b/host/make.sh @@ -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