bugfix
This commit is contained in:
parent
cb67998666
commit
cf06dcf142
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ upload_image() {
|
||||||
/usr/local/bin/vmimage-torrent create "${VM_NAME}.qcow2"
|
/usr/local/bin/vmimage-torrent create "${VM_NAME}.qcow2"
|
||||||
# Upload Torrent, qcow2 and machine-definition-XML
|
# Upload Torrent, qcow2 and machine-definition-XML
|
||||||
[[ -f "/var/lib/libvirt/images/${VM_NAME}.qcow2.torrent" ]] && rsync -av --password-file=/etc/rsync.secret \
|
[[ -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 -av --password-file=/etc/rsync.secret "/var/lib/libvirt/images/${VM_NAME}.qcow2" \
|
||||||
rsync://vmuser@server:/vmimages-upload/
|
rsync://vmuser@server:/vmimages-upload/
|
||||||
rsync -av --password-file=/etc/rsync.secret "/var/lib/libvirt/images/xml/${VM_NAME}.xml" \
|
rsync -av --password-file=/etc/rsync.secret "/var/lib/libvirt/images/xml/${VM_NAME}.xml" \
|
||||||
|
|
Loading…
Add table
Reference in a new issue