From cf06dcf14232b249dd5aa2154373b628f1142a3b Mon Sep 17 00:00:00 2001 From: Raphael Dannecker <raphael.dannecker@steinbeisschule-reutlingen.de> Date: Sun, 21 May 2023 15:05:43 +0200 Subject: [PATCH] bugfix --- roles/lmn_vm/files/sync-vm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/lmn_vm/files/sync-vm.sh b/roles/lmn_vm/files/sync-vm.sh index 0b74b38..4e896dc 100755 --- a/roles/lmn_vm/files/sync-vm.sh +++ b/roles/lmn_vm/files/sync-vm.sh @@ -42,7 +42,7 @@ upload_image() { /usr/local/bin/vmimage-torrent create "${VM_NAME}.qcow2" # Upload Torrent, qcow2 and machine-definition-XML [[ -f "/var/lib/libvirt/images/${VM_NAME}.qcow2.torrent" ]] && rsync -av --password-file=/etc/rsync.secret \ - "/var/lib/libvirt/images/${VM_NAME}.qcow2" rsync://vmuser@server:/vmimages-upload/ + "/var/lib/libvirt/images/${VM_NAME}.qcow2.torrent" rsync://vmuser@server:/vmimages-upload/ rsync -av --password-file=/etc/rsync.secret "/var/lib/libvirt/images/${VM_NAME}.qcow2" \ rsync://vmuser@server:/vmimages-upload/ rsync -av --password-file=/etc/rsync.secret "/var/lib/libvirt/images/xml/${VM_NAME}.xml" \