diff options
-rwxr-xr-x | kvmx | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 ) |