fixed default RCLONE_REMOTE
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
15541a5fb6
commit
2375406fe0
@ -9,9 +9,11 @@ elif [ ! -e "${RCLONE_CONFIG:=/config/rclone.conf}" ]; then
|
||||
rclone --config "${RCLONE_CONFIG:=/config/rclone.conf}" config
|
||||
fi
|
||||
|
||||
RCLONE_REMOTE="$(rclone listremotes | head -1)"
|
||||
|
||||
echo "Using remote: $RCLONE_REMOTE"
|
||||
if [ -z "$RCLONE_REMOTE" ]; then
|
||||
RCLONE_REMOTE="$(rclone listremotes | head -1)/backup"
|
||||
echo "\$RCLONE_REMOTE not set. Defaulting to \"$RCLONE_REMOTE\""
|
||||
fi
|
||||
|
||||
RESTIC_REPOSITORY="rclone:$RCLONE_REMOTE"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user