fixed rclone config content
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Djeeberjr 2022-03-27 20:27:10 +02:00
parent 818e58f179
commit 15541a5fb6

View File

@ -2,8 +2,9 @@
set -e
# if RCLONE_CONFIG_CONTENT is empty and no config file was found
if [ -z "$RCLONE_CONFIG_CONTENT" ] && [ ! -e "${RCLONE_CONFIG:=/config/rclone.conf}" ]; then
if [ -n "$RCLONE_CONFIG_CONTENT" ]; then
echo "$RCLONE_CONFIG_CONTENT" > "${RCLONE_CONFIG:=/config/rclone.conf}"
elif [ ! -e "${RCLONE_CONFIG:=/config/rclone.conf}" ]; then
echo "No rclone config found"
rclone --config "${RCLONE_CONFIG:=/config/rclone.conf}" config
fi