File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ rclone.conf
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ docker run --rm -it -v $(pwd)/rclone.conf:/data/rclone.conf:ro \
2222
2323| Variable | Description |
2424| ----------------------| -------------------------------------------|
25- | ` RCLONE_CONFIG ` | Path to rclone config file |
25+ | ` RCLONE_CONFIG ` | Path to rclone config file or base64 |
2626| ` RCLONE_SOURCE ` | Source location for rclone operation |
2727| ` RCLONE_DESTINATION ` | Destination location for rclone operation |
2828| ` RCLONE_ARGS ` | Additional arguments for rclone |
Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ if [ "$#" -gt 1 ]; then
1313 exit 1
1414fi
1515
16+ if [ ! -f " $RCLONE_CONFIG " ]; then
17+ echo " $RCLONE_CONFIG " | base64 -d > /config/rclone/rclone.conf
18+ RCLONE_CONFIG=" /config/rclone/rclone.conf"
19+ fi
20+
1621rclone " $1 " --config=" $RCLONE_CONFIG " $RCLONE_ARGS " $RCLONE_SOURCE " " $RCLONE_DESTINATION "
1722
1823if [ -z " $HEARTBEAT_URL " ]; then
You can’t perform that action at this time.
0 commit comments