From fe9e1e1b7016aca47842eb9a27b73d242e1d56c4 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 2 Feb 2024 00:50:51 +0300 Subject: [PATCH] bugfix... Signed-off-by: Alex A. Naanou --- .pct-helpers | 4 +++- host/make.sh | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.pct-helpers b/.pct-helpers index 17deb18..c0b2918 100644 --- a/.pct-helpers +++ b/.pct-helpers @@ -119,7 +119,9 @@ fillsection(){ ( ct2hostname(){ local ct=${CT_DIR}/${1}.conf - local host=$(cat $ct | grep hostname | head -1) + local host=$(cat $ct \ + | grep -e '^\s*hostname:' \ + | head -1) echo ${host/hostname: /} } diff --git a/host/make.sh b/host/make.sh index 25a73df..1fda86d 100755 --- a/host/make.sh +++ b/host/make.sh @@ -106,6 +106,9 @@ echo "# Building config..." buildAssets +# XXX /etc/hosts??? + + # DNS if xreadYes "# Update DNS?" DNS ; then file=/etc/resolv.conf