aboutsummaryrefslogtreecommitdiff
path: root/kvmx
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-12-31 00:56:24 -0200
committerSilvio Rhatto <rhatto@riseup.net>2017-12-31 00:56:24 -0200
commitf75a5470b85b2302aee2527bfd87cf061faf1726 (patch)
tree881f9fad01aeabef6fc0a9bd6c8216c3af15884f /kvmx
parent642385d474a9253c5dea9d539a4a9a4d03c05f30 (diff)
downloadkvmx-f75a5470b85b2302aee2527bfd87cf061faf1726.tar.gz
kvmx-f75a5470b85b2302aee2527bfd87cf061faf1726.tar.bz2
Warn the user to do manual config change if datadir is set ad rename/clone actions
Diffstat (limited to 'kvmx')
-rwxr-xr-xkvmx8
1 files changed, 8 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index 6ef4992..b132f56 100755
--- a/kvmx
+++ b/kvmx
@@ -1024,6 +1024,10 @@ function kvmx_clone {
mv $FOLDER/ssh/$VM.key $FOLDER/ssh/$DEST.key
mv $FOLDER/ssh/$VM.key.pub $FOLDER/ssh/$DEST.key.pub
fi
+
+ if [ "$DATADIR" != "$STORAGE" ]; then
+ echo "$BASENAME: please copy datadir $DATADIR manually"
+ fi
}
# Alias to clone
@@ -1474,6 +1478,10 @@ function kvmx_rename {
mv $FOLDER/ssh/$VM.key $FOLDER/ssh/$DEST.key
mv $FOLDER/ssh/$VM.key.pub $FOLDER/ssh/$DEST.key.pub
fi
+
+ if [ "$DATADIR" != "$STORAGE" ]; then
+ echo "$BASENAME: please move datadir $DATADIR manually"
+ fi
}
# Alias to rename