Fix healthcheck
All checks were successful
ShellCheck / shellcheck (push) Successful in 9s
Docker / build (push) Successful in 24s

This commit is contained in:
Andras Schmelczer 2026-09-21 22:03:44 +01:00
commit aa46e5ed2f
4 changed files with 80 additions and 52 deletions

View file

@ -11,7 +11,10 @@ get_log_file_name() {
}
echo "Starting schedule script at $(date)" | log_message
date > /health/container_start_time.log
mkdir -p /health || exit 1
trap 'rm -f /health/container_start_time.log.$$' EXIT
date -u '+%Y-%m-%dT%H:%M:%SZ' > /health/container_start_time.log.$$ &&
mv -fT /health/container_start_time.log.$$ /health/container_start_time.log || exit 1
while true; do
/src/backup-wrapper.sh 2>&1 | log_message