mirror of
https://github.com/flynx/proxmox-utils.git
synced 2025-12-18 17:41:47 +00:00
bugfix...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
a4a818721a
commit
fe9e1e1b70
@ -119,7 +119,9 @@ fillsection(){ (
|
|||||||
|
|
||||||
ct2hostname(){
|
ct2hostname(){
|
||||||
local ct=${CT_DIR}/${1}.conf
|
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: /}
|
echo ${host/hostname: /}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -106,6 +106,9 @@ echo "# Building config..."
|
|||||||
buildAssets
|
buildAssets
|
||||||
|
|
||||||
|
|
||||||
|
# XXX /etc/hosts???
|
||||||
|
|
||||||
|
|
||||||
# DNS
|
# DNS
|
||||||
if xreadYes "# Update DNS?" DNS ; then
|
if xreadYes "# Update DNS?" DNS ; then
|
||||||
file=/etc/resolv.conf
|
file=/etc/resolv.conf
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user