From: Silvio Rhatto Date: Wed, 19 Jun 2024 17:55:51 +0000 (-0300) Subject: Fix: defaults for hostname and domain X-Git-Tag: 0.2.0~11 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=d75a748507597604e1fd7d6d03f1959ecc338bc1;p=kvmx.git Fix: defaults for hostname and domain --- 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