diff --git a/sympa/doc/migration.md b/sympa/doc/migration.md index b63b78c..7088fe9 100644 --- a/sympa/doc/migration.md +++ b/sympa/doc/migration.md @@ -99,3 +99,5 @@ test-editor: "| /usr/lib/sympa/bin/queue test-editor@listes.artcode.re" test-unsubscribe: "| /usr/lib/sympa/bin/queue test-unsubscribe@listes.artcode.re" test-owner: "| /usr/lib/sympa/bin/bouncequeue test@listes.artcode.re" ``` + +pct set 911 --net0 "name=eth0,bridge=vmbr0,firewall=1,gw=51.75.85.254,hwaddr=02:00:00:4b:cc:3c,ip=51.75.85.81/32,type=veth" diff --git a/sympa/miaou/miaou-migrate-sympa-from-container b/sympa/miaou/miaou-migrate-sympa-from-container index 06fd065..19b705f 100755 --- a/sympa/miaou/miaou-migrate-sympa-from-container +++ b/sympa/miaou/miaou-migrate-sympa-from-container @@ -75,9 +75,9 @@ function create_new_container { miaou-create $CONTAINER local vmid=$(pct-lookup $CONTAINER) - local net1="net1: $(pct config $vmid | grep ^net0 | cut -d ' ' -f2 | sed 's/name=eth0/name=eth1/')" - pct set $vmid --net0 $SYMPA_NET0 - pct set $vmid --net1 $net1 + local net1=$(pct config $vmid | grep ^net0 | cut -d ' ' -f2 | sed 's/name=eth0/name=eth1/') + pct set $vmid --net0 "$SYMPA_NET0" + pct set $vmid --net1 "$net1" } function import_from_archive {