From 4bdc42dee9f21ebddc877ccdf5b0cf1aec863cee Mon Sep 17 00:00:00 2001 From: Oliver Mueller Date: Wed, 18 Feb 2026 18:43:04 +0100 Subject: [PATCH 1/2] Implement error tracking in SSH deployment script Add error handling to track deployment issues across multiple servers. Send notification on deployment error. --- deploy/ssh.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/deploy/ssh.sh b/deploy/ssh.sh index c66e2e19..a1f55fdf 100644 --- a/deploy/ssh.sh +++ b/deploy/ssh.sh @@ -170,10 +170,19 @@ ssh_deploy() { _info "Required commands batched and sent in single call to remote host" fi + _returnCode=0 _deploy_ssh_servers="$DEPLOY_SSH_SERVER" for DEPLOY_SSH_SERVER in $_deploy_ssh_servers; do _ssh_deploy + if [ $? -ne 0 ]; then + # in case of an error, remember it, but keep going for now + _returnCode=1 + if [ $_set_level -ge $NOTIFY_LEVEL_ERROR ]; then + _send_notify "Failed to deploy to $DEPLOY_SSH_SERVER" "Some or all of the files have not been transmitted to the server." "$NOTIFY_HOOK" "$RENEW_SKIP" + fi done + + return $_returnCode } _ssh_deploy() { From 9af47ce3a6676a4d2f97caa32ecafaaf4ceb69f0 Mon Sep 17 00:00:00 2001 From: Oliver Mueller Date: Thu, 19 Feb 2026 09:15:30 +0100 Subject: [PATCH 2/2] Fix error handling in SSH deployment script fixed if --- deploy/ssh.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/deploy/ssh.sh b/deploy/ssh.sh index a1f55fdf..69320a3f 100644 --- a/deploy/ssh.sh +++ b/deploy/ssh.sh @@ -180,6 +180,7 @@ ssh_deploy() { if [ $_set_level -ge $NOTIFY_LEVEL_ERROR ]; then _send_notify "Failed to deploy to $DEPLOY_SSH_SERVER" "Some or all of the files have not been transmitted to the server." "$NOTIFY_HOOK" "$RENEW_SKIP" fi + fi done return $_returnCode