aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-03-16 11:06:15 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-03-16 11:06:15 -0300
commit78fd9c0f93856045ab26cf2364fa8d1f795a7624 (patch)
tree9ced2ca040b263fd427450d9efdb0b4eee933db5
parent2fa95cdf9e50f3ced1c4a23da0837c417cf2ac70 (diff)
downloadkvmx-78fd9c0f93856045ab26cf2364fa8d1f795a7624.tar.gz
kvmx-78fd9c0f93856045ab26cf2364fa8d1f795a7624.tar.bz2
Provision: verbosity
-rwxr-xr-xkvmx2
1 files changed, 2 insertions, 0 deletions
diff --git a/kvmx b/kvmx
index d34cbb2..889a9ba 100755
--- a/kvmx
+++ b/kvmx
@@ -533,10 +533,12 @@ function kvmx_provision {
ORIG="`echo $provision_rsync | cut -d ' ' -f 1`"
DEST="`echo $provision_rsync | cut -d ' ' -f 2`"
+ echo "Syncing provision files into the guest..."
echo "sudo mkdir -p `dirname $DEST`" | kvmx_ssh
rsync -av -e "$SSH_COMMAND -o Port=$SSH" --rsync-path "sudo rsync" $ORIG/ $SSH_LOGIN@127.0.0.1:$DEST/
fi
+ echo "Running provision command inside the guest..."
echo "$provision_command $hostname $domain $mirror" | kvmx_ssh
}