|
|
|
@ -63,13 +63,12 @@ EOF |
|
|
|
function get_container_net0 { |
|
|
|
OLD_VMID=$(pct-lookup $CONTAINER) |
|
|
|
SYMPA_NET0=$(pct config $OLD_VMID | grep ^net0 | cut -d ' ' -f2) |
|
|
|
echo $SYMPA_NET0 |
|
|
|
} |
|
|
|
|
|
|
|
function rename_old_container { |
|
|
|
pct set $OLD_VMID --delete net0 |
|
|
|
pct-rename $CONTAINER $CONTAINER.9 |
|
|
|
pct-reboot $OLD_VMID |
|
|
|
pct set $OLD_VMID --delete net0 |
|
|
|
pct reboot $OLD_VMID |
|
|
|
} |
|
|
|
|
|
|
|
function create_new_container { |
|
|
|
|