Fix healtcheck again

This commit is contained in:
Andras Schmelczer 2026-01-24 16:15:04 +00:00
parent 40d87a9d32
commit 909f7fbb6d
2 changed files with 9 additions and 2 deletions

View file

@ -37,9 +37,16 @@ configure_environment() {
}
main() {
# Clear health log at start - only a fully successful run should be marked healthy
rm -f /health/backup_completion_time.log
if [ -n "$BORG_REPO" ]; then
# fallback case if multi-target backup isn't needed
execute_script
if execute_script; then
date > /health/backup_completion_time.log
else
echo "Skipping completion log due to backup failure"
fi
else
local index=0
local configurations_found=false