|
|
@ -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 |
|
|
|