Compare commits

..

2 Commits

Author SHA1 Message Date
7bd6e197ab fix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-02-02 01:46:39 +03:00
fe9e1e1b70 bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
2024-02-02 00:50:51 +03:00
3 changed files with 7 additions and 2 deletions

View File

@ -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: /}
}

View File

@ -106,6 +106,9 @@ echo "# Building config..."
buildAssets
# XXX /etc/hosts???
# DNS
if xreadYes "# Update DNS?" DNS ; then
file=/etc/resolv.conf

View File

@ -23,7 +23,7 @@ fi
for ct in $CT_DIR/*.conf ; do
id=$(basename ${ct/.conf/})
host=$(cat $ct | grep hostname | head -1)
host=$(ct2hostname)
host=${host/hostname: /}
# skip templates...