diff --git a/create-certificat b/create-certificat index 73b3f2c..d0ed8ae 100755 --- a/create-certificat +++ b/create-certificat @@ -16,7 +16,7 @@ ${certbot_bin} certonly --domains $1 --renew-by-default --http-01-port 63443 - if [ $? -eq 0 ]; then echo "$(date +%c) Success ! Now creating ${1}.pem" cat /etc/letsencrypt/live/$1/fullchain.pem /etc/letsencrypt/live/$1/privkey.pem > ${haproxy_pem_path}/$1.pem - service haproxy reload + systemctl reload haproxy else echo "$(date +%c) Error creating certificate with error code $?, exit script..." exit 1 diff --git a/renew-certificates b/renew-certificates index 5e8b707..b91a8fb 100755 --- a/renew-certificates +++ b/renew-certificates @@ -22,5 +22,5 @@ done # At the end, reload haproxy echo "$(date +%c) Reload haproxy" -service haproxy reload +systemctl reload haproxy