From: Silvio Rhatto Date: Wed, 19 Jun 2024 20:05:51 +0000 (-0300) Subject: Fix: hostname: fallback to the guest name (2) X-Git-Tag: 0.2.0~6 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=7e104c572a52beb67017e594c5f3b1db5d307f64;p=kvmx.git Fix: hostname: fallback to the guest name (2) --- diff --git a/kvmx b/kvmx index 5e336a9..8071edb 100755 --- a/kvmx +++ b/kvmx @@ -126,7 +126,9 @@ function __kvmx_initialize { source $APP_BASE/kvmxfile || exit 1 # Set hostname - hostname="${hostname:-$VM}" + if [ "$hostname" == "kvmx" ] && [ "$VM" != "kvmx" ]; then + hostname="$VM" + fi # Set domain (this is already done with the default config) #domain="${domain:-example.org}"