From ca4c4adb59ca412c3f4bf943930b7558c4613ba9 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Tue, 11 Feb 2020 12:06:40 +0100 Subject: [PATCH] certbot: commit all changes in /etc/.git On some servers, certificates can be copied directly in final directories over SSH. --- certbot/files/hooks/commit-etc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certbot/files/hooks/commit-etc.sh b/certbot/files/hooks/commit-etc.sh index f55b253c..f1812762 100644 --- a/certbot/files/hooks/commit-etc.sh +++ b/certbot/files/hooks/commit-etc.sh @@ -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}"