#!/bin/bash # Stoppe le serveur Apache2 s'il est demarre if systemctl is-active --quiet apache2; then systemctl stop apache2 fi # Creation et installation des certificats Let's Encrypt certbot certonly --standalone -d monrisquearteriel.com -d api.monrisquearteriel.com -d www.monrisquearteriel.com -d cro.monrisquearteriel.com # Configuration Apache2 a2enmod headers rewrite ssl proxy proxy_http a2ensite ipsocloud.conf # Configuration PHP for i in /etc/php/*/apache2/php.ini; do if [ -f ${i} ]; then ed -s ${i} <