#!/bin/bash # Installation de certbot (client ACME de Let's Encrypt pour les certificats) snap install --classic certbot # Configuration Apache2 [ -z "$(grep \/var\/www\/www /etc/apache2/apache2.conf)" ] && ed -s /etc/apache2/apache2.conf < Options Indexes FollowSymLinks AllowOverride None Require all granted . w EOF a2enmod headers a2enmod rewrite a2enmod ssl a2ensite api.conf a2ensite www.conf a2ensite cro.conf # Configuration PHP for i in /etc/php/*/apache2/php.ini; do if [ -f ${i} ]; then ed -s ${i} <