@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user