bugfixes for the evoacme part

This commit is contained in:
Nicolas Roman 2019-07-15 17:06:50 +02:00
parent 4eaf3ad6d1
commit c218aebaae
2 changed files with 3 additions and 4 deletions

View file

@ -134,8 +134,7 @@ if (isset($_POST['submit'])) {
}
// evoacme
// $generateCert = $letsencrypt->generateSSLCertificate($params[1], false);
$generateCert = $letsencrypt->generateSSLCertificate($params[1]);
$generateCert = $letsencrypt->generateSSLCertificate($params[1], false);
if (!$generateCert) {
$errorMessage = "Erreur : La génération de certificat a échoué.<br>

View file

@ -909,7 +909,7 @@ op_generatesslcertificate() {
if [ "$test_mode" = "false" ]; then
evoacme "$vhost"
else
TEST=1 evoacme "$vhost"
DRY_RUN=1 evoacme "$vhost"
fi
else usage
fi
@ -917,7 +917,7 @@ op_generatesslcertificate() {
op_updatesslvhost() {
if [ $# -eq 1 ]; then
vhostfile="/etc/apache2/sites-enabled/$1.conf"
vhostfile="/etc/apache2/sites-available/$1.conf"
sed -i "s/:80>/:80 *:443>/" "$vhostfile"