Browse Source

fix import certbot cli.ini

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

4
sympa/resources/tools/sympa_import.bash

@ -112,7 +112,7 @@ function import_certbot {
if [[ -f "$export_tmp/certbot.tar" ]]; then if [[ -f "$export_tmp/certbot.tar" ]]; then
echo "certbot save previous cli.ini" echo "certbot save previous cli.ini"
cp /etc/letsencrypt/cli.ini "$export_tmp/
cp /etc/letsencrypt/cli.ini "$export_tmp/"
echo "import certbot..." echo "import certbot..."
rm -rf /etc/letsencrypt rm -rf /etc/letsencrypt
@ -120,7 +120,7 @@ function import_certbot {
echo OK echo OK
echo "certbot restore previous cli.ini" 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" 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 /opt/miaou-bash/tools/append_or_replace '^authenticator =.*$' "authenticator = nginx" /etc/letsencrypt/renewal/$SYMPA_DOMAIN.conf

Loading…
Cancel
Save