From 931dec957f90db9794e88d4f0410c1239c42af91 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Tue, 15 Feb 2022 11:19:08 +0100 Subject: [PATCH] added config file env var --- setup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.sh b/setup.sh index 3e9ea80..d36dc6d 100755 --- a/setup.sh +++ b/setup.sh @@ -2,6 +2,10 @@ set -e +if [ -z "$RCLONE_CONFIG_FILE" ]; then + echo "$RCLONE_CONFIG_FILE" > "${RCLONE_CONFIG:=/config/rclone.conf}" +fi + if [ -z "${RCLONE_CONFIG}" ]; then RCLONE_CONFIG="/config/rclone.conf" [ -e "${RCLONE_CONFIG}" ] || echo "No config file found"