From 49e777ece15e963aac6d75ec422143c7a0082770 Mon Sep 17 00:00:00 2001 From: Vassiliy Yegorov Date: Mon, 8 Sep 2025 12:17:21 +0700 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=BF=D1=80=D0=BE=D1=89=D0=B5=D0=BD=20?= =?UTF-8?q?=D1=81=D0=BA=D1=80=D0=B8=D0=BF=D1=82=20entrypoint.sh:=20=D0=B8?= =?UTF-8?q?=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=20=D0=BF=D1=83=D1=82=D1=8C?= =?UTF-8?q?=20=D0=B4=D0=BB=D1=8F=20crontab,=20=D1=83=D0=BB=D1=83=D1=87?= =?UTF-8?q?=D1=88=D0=B5=D0=BD=20=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=20=D0=B7=D0=B0=D0=BF=D1=83=D1=81=D0=BA=D0=B5=20cro?= =?UTF-8?q?nd,=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B0=20?= =?UTF-8?q?=D0=BE=D0=B1=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=BA=D0=B0=20=D0=BE?= =?UTF-8?q?=D1=88=D0=B8=D0=B1=D0=BE=D0=BA.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/entrypoint.sh | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 6cb006c..af7320a 100644 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -1,17 +1,12 @@ #!/bin/sh +set +e + # Create crontab in a writable location and set proper permissions -mkdir -p /tmp/crontabs -echo "${CRONTAB:-"0 * * * *"} /scripts/backup.sh >> /proc/1/fd/1 2>&1" > /tmp/crontabs/root -chmod 644 /tmp/crontabs/root +echo "${CRONTAB:-"0 * * * *"} /scripts/backup.sh >> /proc/1/fd/1 2>&1" > /etc/crontabs/root # Run initial backup -# /scripts/backup.sh - -# Start crond with debug output -echo "Starting crond with config:" -cat /tmp/crontabs/root -echo "---" +/scripts/backup.sh # Start crond in foreground with debug output -exec crond -f -c /tmp/crontabs -d 8 +exec crond -f -d 0