File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 24
24
override COMPOSE =
25
25
endif
26
26
27
- DOCKER_COMPOSE := ${COMPOSE_COMMAND} ${BASE_COMPOSE} ${COMPOSE} --env-file=$(ENV_FILE )
27
+ DOCKER_COMPOSE := ${COMPOSE_COMMAND} ${BASE_COMPOSE} ${COMPOSE} --env-file=$(pwd ) /$(ENV_FILE )
28
+
29
+ # This command uses an Alpine linux image to run a script to add a post-renew hook to letsencrypt
30
+ PLACE_RENEWAL_HOOK := docker run -e DOCKER_COMPOSE=${DOCKER_COMPOSE} -v /etc/letsencrypt:/etc/letsencrypt -v ${CAMINO_HOME}/conf/scripts/post-renew.sh:/opt-post-renew.sh alpine:3 /bin/sh -c "chmod +x /opt/post-renew.sh && /opt/post-renew.sh"
28
31
29
32
.PHONY : deploy-docs
30
33
deploy-docs :
@@ -76,6 +79,7 @@ ifdef POST_DEPLOY_SCRIPT
76
79
chmod +x ${CAMINO_HOME}/conf/camino/${POST_DEPLOY_SCRIPT} && ${CAMINO_HOME}/conf/camino/${POST_DEPLOY_SCRIPT} all
77
80
endif
78
81
$(DOCKER_COMPOSE) restart nginx
82
+ $(PLACE_RENEWAL_HOOK)
79
83
80
84
.PHONY : migrate
81
85
migrate :
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+ mkdir -p /etc/letsencrypt/renewal-hooks/post/
3
+ echo -e " #! /bin/sh\n${DOCKER_COMPOSE} restart nginx\n" > /etc/letsencrypt/renewal-hooks/post/post-renew.sh
4
+ chmod +x /etc/letsencrypt/renewal-hooks/post/post-renew.sh
You can’t perform that action at this time.
0 commit comments