aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvmx6
1 files changed, 6 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index 4f0ff6e..2afc9b3 100755
--- a/kvmx
+++ b/kvmx
@@ -127,6 +127,12 @@ function __kvmx_initialize {
source $GLOBAL_USER_CONFIG_FILE
fi
+ # Set hostname
+ hostname="${hostname:-$VM}"
+
+ # Set domain
+ domain="${domain:-example.org}"
+
# Load and check guest config
if [ "$ACTION" != "ls" ] && [ "$ACTION" != "edit" ] && [ "$ACTION" != "usage" ]; then
if [ ! -e "$GLOBAL_USER_CONFIG_FOLDER/$VM" ]; then