Browse Source

fix import certbot cli.ini

main
pvincent 2 weeks ago
parent
commit
34007554e0
  1. 6
      sympa/resources/tools/sympa_import.bash

6
sympa/resources/tools/sympa_import.bash

@ -112,15 +112,15 @@ function import_certbot {
if [[ -f "$export_tmp/certbot.tar" ]]; then
echo "certbot save previous cli.ini"
cp /etc/letsencrypt/cli.ini "$export_tmp/
cp /etc/letsencrypt/cli.ini "$export_tmp/"
echo "import certbot..."
rm -rf /etc/letsencrypt
tar -xf "$export_tmp/certbot.tar" -C /
echo OK
echo "certbot restore previous cli.ini"
mv "$export_tmp/cli.ini /etc/letsencrypt/
mv "$export_tmp/cli.ini" /etc/letsencrypt/
echo "convert certbot apache2 authenticator to certbotx nginx authenticator"
/opt/miaou-bash/tools/append_or_replace '^authenticator =.*$' "authenticator = nginx" /etc/letsencrypt/renewal/$SYMPA_DOMAIN.conf

Loading…
Cancel
Save