]> git.proxmox.com Git - pve-zsync.git/commitdiff
extend send_config: now it support's container too.
authorWolfgang Link <w.link@proxmox.com>
Thu, 5 Nov 2015 08:00:28 +0000 (09:00 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 6 Nov 2015 07:20:10 +0000 (08:20 +0100)
pve-zsync

index 302c33e7f30fdfbca7fad599f54148bfcf94094f..3af504be697c209a6233b149186851cb57c46725 100644 (file)
--- a/pve-zsync
+++ b/pve-zsync
@@ -864,7 +864,7 @@ sub send_image {
 sub send_config{
     my ($source, $dest, $method) = @_;
 
-    my $source_target ="$QEMU_CONF$source->{vmid}.conf";
+    my $source_target = $source->{vm_type} eq 'qemu' ? "$QEMU_CONF$source->{vmid}.conf": "$LXC_CONF$source->{vmid}.conf";
     my $dest_target_new ="$CONFIG_PATH$source->{vmid}.conf.$source->{new_snap}";
 
     if ($method eq 'ssh'){