Add docker entrypoint

This commit is contained in:
FarisZR 2022-03-19 03:20:34 +03:00 committed by GitHub
parent 8b74a98836
commit 1d1e5731e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

7
entrypoint.sh Normal file
View File

@ -0,0 +1,7 @@
#!/bin/sh
autorestic $AUTORESTIC_INITIAL_ARGS
if [ -n "$CRON_CONFIG_DIR" ]
then
echo "CRON_CONFIG_DIR is set, cron enabled"
crond -f -L /var/log/cron.log
fi