certbot: commit all changes in /etc/.git
continuous-integration/drone/push Build is failing Details

On some servers, certificates can be copied directly in final 
directories over SSH.
This commit is contained in:
Jérémy Lecour 2020-02-11 12:06:40 +01:00 committed by Jérémy Lecour
parent f57af13349
commit ca4c4adb59
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ main() {
export GIT_WORK_TREE="/etc"
if test -x "${git_bin}" && test -d "${GIT_DIR}" && test -d "${GIT_WORK_TREE}"; then
changed_lines=$(${git_bin} status --porcelain -- ${letsencrypt_dir} | wc -l | tr -d ' ')
changed_lines=$(${git_bin} status --porcelain | wc -l | tr -d ' ')
if [ "${changed_lines}" != "0" ]; then
debug "Committing for ${RENEWED_DOMAINS}"