fix cron
docker-build / Build image (push) Successful in 14s

This commit is contained in:
2026-09-02 16:51:19 +07:00
parent f166f95b44
commit 99bc9665c3
6 changed files with 222 additions and 32 deletions
-7
View File
@@ -1,12 +1,5 @@
#!/bin/sh
# crond gives the job a bare environment (HOME/PATH/SHELL only), so the cron
# entry passes --from-cron and the env dumped by entrypoint.sh is restored here.
# A manual run keeps the environment it was invoked with.
if [ "${1:-}" = "--from-cron" ] && [ -f /tmp/container.env ]; then
. /tmp/container.env
fi
set -u
BACKUP_FILE="sqlite_$(date "+%F-%H%M%S").tar.gz"