added config file env var

This commit is contained in:
Djeeberjr 2022-02-15 11:19:08 +01:00
parent 818e14c644
commit 931dec957f

View File

@ -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"