pvincent 2 weeks ago
parent
commit
16a083c9ae
  1. 20
      sympa/miaou/miaou-migrate-sympa-from-container

20
sympa/miaou/miaou-migrate-sympa-from-container

@ -67,15 +67,29 @@ function get_container_net0 {
echo $SYMPA_NET0
}
function stop_old_container {
pct-stop $CONTAINER
pct-rename $CONTAINER $CONTAINER.OLD
}
function create_new_container{
# miaou-create $CONTAINER
# pct-stop $CONTAINER
local net1="net1: $(get_container_net0 | cut -d' ' -f2)"
echo $net1
}
# MAIN
set -Eue
parse_options $*
assert_proxmox
assert_container_sympa_debian9
# assert_container_sympa_debian9
# export_sympa
get_container_net0
# 3. stop container
# get_container_net0
# stop_old_container
create_new_container
# 4. create container with same IP
# 5. install sympa
# 6. import old data

Loading…
Cancel
Save