|
|
|
@ -111,10 +111,20 @@ function import_certbot { |
|
|
|
SYMPA_DOMAIN=$(grep '^domain' /etc/sympa/sympa/sympa.conf | cut -f2) |
|
|
|
|
|
|
|
if [[ -f "$export_tmp/certbot.tar" ]]; then |
|
|
|
echo -n "import certbot..." |
|
|
|
echo "certbot save previous cli.ini" |
|
|
|
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/ |
|
|
|
|
|
|
|
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 '^installer =.*$' "installer = nginx" /etc/letsencrypt/renewal/$SYMPA_DOMAIN.conf |
|
|
|
fi |
|
|
|
|
|
|
|
# add options-ssl-nginx.conf |
|
|
|
|