aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-05-12 15:51:04 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-05-12 15:51:04 -0300
commit577e07f537d3edc6925d65f8829fdb506b522a2d (patch)
tree4e094d7df73bfcd7d6ed9f48bd85c76454164fcd
parent833f61610af0afed244dea654a103987ff381122 (diff)
downloadkvmx-577e07f537d3edc6925d65f8829fdb506b522a2d.tar.gz
kvmx-577e07f537d3edc6925d65f8829fdb506b522a2d.tar.bz2
Remove old state folder at kvmx_clone
-rwxr-xr-xkvmx3
1 files changed, 3 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index 2a11eaf..b36e834 100755
--- a/kvmx
+++ b/kvmx
@@ -725,6 +725,9 @@ function kvmx_clone {
cp -r `dirname $image` $FOLDER/
fi
+ # Remove old state folder
+ rm -rf $FOLDER/state/*
+
# Create config entry
( cd $GLOBAL_USER_CONFIG_FOLDER && ln -s $FOLDER/kvmxfile $DEST )