From 84da65f0054c5a41e52a893a153a3fbe604cb451 Mon Sep 17 00:00:00 2001 From: pvincent Date: Thu, 19 Mar 2026 14:54:37 +0400 Subject: [PATCH] works for listes.artcode.re --- sympa/doc/migration.md | 3 ++- sympa/miaou/miaou-install-from-import-sympa | 16 ---------------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/sympa/doc/migration.md b/sympa/doc/migration.md index 3e57464..20cd21b 100644 --- a/sympa/doc/migration.md +++ b/sympa/doc/migration.md @@ -58,5 +58,6 @@ To: debian13, sympa 6.2.76 ## miaou-install-from-import-sympa * CONTAINER=sympa3 +* LAST_ARCHIVE=$(find ~/Downloads -type f -name "listes.artcode.re*" | sort -rn | head -1) * miaou-create $CONTAINER -* miaou/miaou-install-from-import-sympa $CONTAINER ~/Downloads/listes.artcode.re-2025-11-14.sympa +* miaou/miaou-install-from-import-sympa $CONTAINER $LAST_ARCHIVE diff --git a/sympa/miaou/miaou-install-from-import-sympa b/sympa/miaou/miaou-install-from-import-sympa index 5a76e9a..0563f0b 100755 --- a/sympa/miaou/miaou-install-from-import-sympa +++ b/sympa/miaou/miaou-install-from-import-sympa @@ -44,22 +44,6 @@ function install_fake_additional { echo 'install fake additional...' miaou-push $CONTAINER $HOME/.ssh/id_ed25519 /root/.ssh/ miaou-push $CONTAINER $HOME/.ssh/id_ed25519.pub /root/.ssh/ - - local sympa_domain=$(miaou-exec $CONTAINER -- grep ^domain /etc/sympa/sympa/sympa.conf | cut -f2) - echo sympa_domain=$sympa_domain - local sympa_authenticity_key_host=$(ssh-keygen -lF $sympa_domain | grep "^$sympa_domain ED25519" | head -1) - [[ -z $sympa_authenticity_key_host ]] && - echo "fake additional has failed due to unknown machine: $sympa_domain. please connect once like: \`ssh $sympa_domain\` then retry" && - exit 11 - - miaou-exec $CONTAINER -- bash <> /root/.ssh/known_hosts -EOF - local sympa_authenticity_key_container=$(miaou-exec $CONTAINER -- ssh-keygen -lF $sympa_domain | grep "^$sympa_domain ED25519" | head -1) - [[ "$sympa_authenticity_key_host" != "$sympa_authenticity_key_container" ]] && - echo "authenticity key for machine: $sympa_domain mismatched!. please compare like: \`ssh-keygen -lF $sympa_domain\` both from host and container" && - exit 12 - miaou-recipe "$CONTAINER" "$BASEDIR"/../recipe/sympa_ldap_auth_remote.recipe echo 'install fake additional...OK' }