diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-04-20 10:59:14 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-04-20 10:59:14 -0300 |
commit | 3aa08bd1f537faa8b3ebf013d1be0318d2ec498c (patch) | |
tree | 6982968a0b0b7d08063a62fb8a653f2c2ea95f1e | |
parent | 8d87ca5155aa95bf3b3ab94e419cc46ab862becd (diff) | |
download | kvmx-3aa08bd1f537faa8b3ebf013d1be0318d2ec498c.tar.gz kvmx-3aa08bd1f537faa8b3ebf013d1be0318d2ec498c.tar.bz2 |
Copy kvmxfile if needed at kvmx_clone
-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 ) |