Fix challenge path, remove redundant folder

This commit is contained in:
lostinlight 2018-11-11 22:11:32 +03:00
parent 7fcdf7a2e8
commit 0cc8688b97
2 changed files with 3 additions and 4 deletions

View File

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

View File

@ -1 +0,0 @@
J7A-6Nc9l7k_MlOAcJ22-HJV7k2HtBmnB0BY8QAzTPE.kWnfOuhgE8oD1qaS_q3X0rswOw-Ic7FukAdkICFVOis