mirror of
https://github.com/YunoHost/yunohost-ci.git
synced 2024-09-03 20:05:53 +02:00
fix IP address of the copy containers
This commit is contained in:
parent
7e367e3fc7
commit
9a552cdab3
1 changed files with 3 additions and 0 deletions
3
utils.sh
3
utils.sh
|
@ -97,6 +97,9 @@ create_snapshot()
|
||||||
local instance_to_publish=$1
|
local instance_to_publish=$1
|
||||||
local snapshot=$2
|
local snapshot=$2
|
||||||
|
|
||||||
|
# Unset the mac address to ensure the copy will get a new one and will be able to get new IP
|
||||||
|
lxc config unset "$instance_to_publish" volatile.eth0.hwaddr
|
||||||
|
|
||||||
# Create snapshot
|
# Create snapshot
|
||||||
lxc snapshot "$instance_to_publish" "$snapshot" --reuse
|
lxc snapshot "$instance_to_publish" "$snapshot" --reuse
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue