aboutsummaryrefslogtreecommitdiff
path: root/kvmx
diff options
context:
space:
mode:
Diffstat (limited to 'kvmx')
-rwxr-xr-xkvmx5
1 files changed, 5 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index 6af78f9..e98921d 100755
--- a/kvmx
+++ b/kvmx
@@ -1055,6 +1055,11 @@ function kvmx_clone {
# Remove old state folder
rm -rf $FOLDER/state/*
+ # Copy kvmxfile if not present on $FOLDER
+ if [ ! -e "$FOLDER/kvmxfile" ]; then
+ cat $GLOBAL_USER_CONFIG_FOLDER/$VM > $FOLDER/kvmxfile
+ fi
+
# Create config entry
( cd $GLOBAL_USER_CONFIG_FOLDER && ln -s $FOLDER/kvmxfile $DEST )