From 2849dbb47217117e2d800e60e7f86c3489f83e1c Mon Sep 17 00:00:00 2001 From: tickstep Date: Sat, 21 Sep 2024 14:13:56 +0800 Subject: [PATCH] add default ip type as ipv4 for docker --- docker/sync/Dockerfile | 1 + docker/sync/app.sh | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/docker/sync/Dockerfile b/docker/sync/Dockerfile index 0dec7b1..76b55bb 100644 --- a/docker/sync/Dockerfile +++ b/docker/sync/Dockerfile @@ -63,6 +63,7 @@ ENV ALIYUNPAN_SYNC_LOG=false ENV ALIYUNPAN_LOCAL_DELAY_TIME=3 ENV ALIYUNPAN_SCAN_INTERVAL_TIME=1 ENV ALIYUNPAN_DEVICE_ID="" +ENV ALIYUNPAN_IP_TYPE="ipv4" # 运行 ENTRYPOINT ./app.sh \ No newline at end of file diff --git a/docker/sync/app.sh b/docker/sync/app.sh index f807005..7226fd8 100755 --- a/docker/sync/app.sh +++ b/docker/sync/app.sh @@ -59,4 +59,8 @@ else ./aliyunpan config set -file_record_config 2 fi +# IP type +./aliyunpan config set -ip_type ${ALIYUNPAN_IP_TYPE} + +# run ./aliyunpan sync start -dp ${ALIYUNPAN_DOWNLOAD_PARALLEL} -up ${ALIYUNPAN_UPLOAD_PARALLEL} -dbs ${ALIYUNPAN_DOWNLOAD_BLOCK_SIZE} -ubs ${ALIYUNPAN_UPLOAD_BLOCK_SIZE} -log ${ALIYUNPAN_SYNC_LOG} -ldt ${ALIYUNPAN_LOCAL_DELAY_TIME} -cycle ${ALIYUNPAN_SYNC_CYCLE} -sit ${ALIYUNPAN_SCAN_INTERVAL_TIME}