From de7f8cc345ab4b0afd81003d3a09f957b08cc74b Mon Sep 17 00:00:00 2001 From: ttionya Date: Sat, 6 Jun 2020 10:35:30 +0800 Subject: [PATCH] feat: support call rclone without set docker entrypoint --- scripts/entrypoint.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 835f35d..026854c 100644 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -2,6 +2,13 @@ . /app/includes.sh +# rclone command +if [[ "$1" == "rclone" ]]; then + $* + + exit 0 +fi + function configure_cron() { echo "${CRON} sh /app/backup.sh > /dev/stdout" >> /etc/crontabs/root }