certbot: commit hook must be executed at the end
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Jérémy Lecour 2020-02-25 10:46:21 +01:00 committed by Jérémy Lecour
parent 7283e34077
commit 65bc2c657d
3 changed files with 16 additions and 1 deletions

View File

@ -46,6 +46,7 @@ The **patch** part changes incrementally at each release.
* removed some deprecations for Ansible 2.7 * removed some deprecations for Ansible 2.7
* apache: improve permissions in save_apache_status script * apache: improve permissions in save_apache_status script
* apt: hold packages only if package is installed * apt: hold packages only if package is installed
* certbot: commit hook must be executed at the end
* elasticsearch: listen on local interface only by default * elasticsearch: listen on local interface only by default
* evocheck: upstream version 19.11.2 * evocheck: upstream version 19.11.2
* evocheck: cron jobs execute in verbose * evocheck: cron jobs execute in verbose

View File

@ -18,7 +18,7 @@ main() {
if [ "${changed_lines}" != "0" ]; then if [ "${changed_lines}" != "0" ]; then
debug "Committing for ${RENEWED_DOMAINS}" debug "Committing for ${RENEWED_DOMAINS}"
${git_bin} add --all ${letsencrypt_dir} ${git_bin} add --all
message="[letsencrypt] certificates renewal (${RENEWED_DOMAINS})" message="[letsencrypt] certificates renewal (${RENEWED_DOMAINS})"
${git_bin} commit --message "${message}" --quiet ${git_bin} commit --message "${message}" --quiet
else else

View File

@ -21,3 +21,17 @@
mode: "0700" mode: "0700"
owner: root owner: root
group: root group: root
- name: Move commit-etc.sh to z-commit-etc.sh if present
command: "mv /etc/letsencrypt/renewal-hooks/deploy/commit-etc.sh /etc/letsencrypt/renewal-hooks/deploy/z-commit-etc.sh"
args:
removes: /etc/letsencrypt/renewal-hooks/deploy/commit-etc.sh
creates: /etc/letsencrypt/renewal-hooks/deploy/z-commit-etc.sh
- name: "certbot lock is ignored by Git"
lineinfile:
dest: /etc/.gitignore
line: letsencrypt/.certbot.lock
create: yes
owner: root
mode: "0600"