diff --git a/files/certbot/nginx.sh b/files/certbot/nginx.sh index 95cfa47..ba8260a 100644 --- a/files/certbot/nginx.sh +++ b/files/certbot/nginx.sh @@ -1,5 +1,5 @@ #!/bin/bash - +env echo -n "$CERTBOT_VALIDATION" > /root/nginx/html/.well-known/acme-challenge/$CERTBOT_TOKEN mkdir -p /root/nginx/html/.well-known/acme-challenge /opt/ansible/bin/ansible-pull -U ssh://git@github.com/MatteZ02/mpp-ansible --private-key ~/.ssh/id_rsa tasks.yml -t nginx &> /dev/null