aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx4
1 files changed, 3 insertions, 1 deletions
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}"