From 1d1e5731e933678024fabcec61dd2d22bdb04994 Mon Sep 17 00:00:00 2001 From: FarisZR <35614734+fariszr@users.noreply.github.com> Date: Sat, 19 Mar 2022 03:20:34 +0300 Subject: [PATCH] Add docker entrypoint --- entrypoint.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 entrypoint.sh diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..21d19a0 --- /dev/null +++ b/entrypoint.sh @@ -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 \ No newline at end of file