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"