fixed default RCLONE_REMOTE
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Djeeberjr 2022-03-27 20:29:19 +02:00
parent 15541a5fb6
commit 2375406fe0

View File

@ -9,9 +9,11 @@ elif [ ! -e "${RCLONE_CONFIG:=/config/rclone.conf}" ]; then
rclone --config "${RCLONE_CONFIG:=/config/rclone.conf}" config rclone --config "${RCLONE_CONFIG:=/config/rclone.conf}" config
fi 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" RESTIC_REPOSITORY="rclone:$RCLONE_REMOTE"