diff --git a/letsencrypt_authenticator.sh b/letsencrypt_authenticator.sh index 11d4c99..3063563 100644 --- a/letsencrypt_authenticator.sh +++ b/letsencrypt_authenticator.sh @@ -2,9 +2,9 @@ #!/bin/bash # source https://www.harenslak.nl/blog/https-letsencrypt-gitlab-hugo -mkdir -p $CI_PROJECT_DIR/static/.well-known/acme-challenge -echo $CERTBOT_VALIDATION > $CI_PROJECT_DIR/static/.well-known/acme-challenge/$CERTBOT_TOKEN -git add $CI_PROJECT_DIR/static/.well-known/acme-challenge/$CERTBOT_TOKEN +mkdir -p $CI_PROJECT_DIR/source/_static/.well-known/acme-challenge +echo $CERTBOT_VALIDATION > $CI_PROJECT_DIR/source/_static/.well-known/acme-challenge/$CERTBOT_TOKEN +git add $CI_PROJECT_DIR/source/_static/.well-known/acme-challenge/$CERTBOT_TOKEN git commit -m "GitLab runner - Added certbot challenge file for certificate renewal" git push https://$GITLAB_USER_LOGIN:$CERTBOT_RENEWAL_GIT_TOKEN@gitlab.com/fediverse/fediverse.gitlab.io.git HEAD:master diff --git a/static/.well-known/acme-challenge/J7A-6Nc9l7k_MlOAcJ22-HJV7k2HtBmnB0BY8QAzTPE b/static/.well-known/acme-challenge/J7A-6Nc9l7k_MlOAcJ22-HJV7k2HtBmnB0BY8QAzTPE deleted file mode 100644 index ff74347..0000000 --- a/static/.well-known/acme-challenge/J7A-6Nc9l7k_MlOAcJ22-HJV7k2HtBmnB0BY8QAzTPE +++ /dev/null @@ -1 +0,0 @@ -J7A-6Nc9l7k_MlOAcJ22-HJV7k2HtBmnB0BY8QAzTPE.kWnfOuhgE8oD1qaS_q3X0rswOw-Ic7FukAdkICFVOis