cloudflare

This commit is contained in:
Zsolt Ero
2023-12-28 16:06:56 +01:00
parent a29455d729
commit a643bc4c78
2 changed files with 4 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ set -e
AREAS=('planet' 'monaco')
export RCLONE_CONFIG=rclone.conf
export RCLONE_CONFIG=/data/ofm/config/rclone.conf
rm -rf index
mkdir index

View File

@@ -4,13 +4,15 @@ set -e
AREA=$(basename "$(dirname "$PWD")")
VERSION=$(basename "$PWD")
export RCLONE_CONFIG=/data/ofm/config/rclone.conf
if [[ $AREA != "planet" && $AREA != "monaco" ]]; then
echo "Area must be 'planet' or 'monaco'. Terminating."
exit 1
fi
if [ ! -f /data/ofm/config/rclone.conf ]; then
if [ ! -f $RCLONE_CONFIG ]; then
echo "rclone.conf does not exist. Terminating."
exit 1
fi
@@ -19,7 +21,6 @@ fi
rm -f logs/rclone.log
rclone sync \
--config=/data/ofm/config/rclone.conf \
--transfers=8 \
--multi-thread-streams=8 \
--fast-list \