diff --git a/contrib/docker/entrypoint.sh b/contrib/docker/entrypoint.sh index f75f937d..30e922c9 100755 --- a/contrib/docker/entrypoint.sh +++ b/contrib/docker/entrypoint.sh @@ -125,6 +125,20 @@ if [ "${ONEDRIVE_DRYRUN:=0}" == "1" ]; then ARGS=(--dry-run ${ARGS[@]}) fi +# Tell client to disable download validation +if [ "${ONEDRIVE_DISABLE_DOWNLOAD_VALIDATION:=0}" == "1" ]; then + echo "# We are disabling the download integrity checks performed by this client" + echo "# Adding --disable-download-validation" + ARGS=(--disable-download-validation ${ARGS[@]}) +fi + +# Tell client to disable upload validation +if [ "${ONEDRIVE_DISABLE_UPLOAD_VALIDATION:=0}" == "1" ]; then + echo "# We are disabling the upload integrity checks performed by this client" + echo "# Adding --disable-upload-validation" + ARGS=(--disable-upload-validation ${ARGS[@]}) +fi + if [ ${#} -gt 0 ]; then ARGS=("${@}") fi diff --git a/docs/docker.md b/docs/docker.md index 1bf6251f..7c904b09 100644 --- a/docs/docker.md +++ b/docs/docker.md @@ -275,6 +275,8 @@ docker run $firstRun --restart unless-stopped --name onedrive -v onedrive_conf:/ | ONEDRIVE_DISPLAY_CONFIG | Controls "--display-running-config" switch on onedrive sync. Default is 0 | 1 | | ONEDRIVE_SINGLE_DIRECTORY | Controls "--single-directory" option. Default = "" | "mydir" | | ONEDRIVE_DRYRUN | Controls "--dry-run" option. Default is 0 | 1 | +| ONEDRIVE_DISABLE_DOWNLOAD_VALIDATION | Controls "--disable-download-validation" option. Default is 0 | 1 | +| ONEDRIVE_DISABLE_UPLOAD_VALIDATION | Controls "--disable-upload-validation" option. Default is 0 | 1 | ### Environment Variables Usage Examples **Verbose Output:** diff --git a/docs/podman.md b/docs/podman.md index 4f3474f3..57d2d9f0 100644 --- a/docs/podman.md +++ b/docs/podman.md @@ -295,6 +295,8 @@ podman run -it --name onedrive_work --user "${ONEDRIVE_UID}:${ONEDRIVE_GID}" \ | ONEDRIVE_DISPLAY_CONFIG | Controls "--display-running-config" switch on onedrive sync. Default is 0 | 1 | | ONEDRIVE_SINGLE_DIRECTORY | Controls "--single-directory" option. Default = "" | "mydir" | | ONEDRIVE_DRYRUN | Controls "--dry-run" option. Default is 0 | 1 | +| ONEDRIVE_DISABLE_DOWNLOAD_VALIDATION | Controls "--disable-download-validation" option. Default is 0 | 1 | +| ONEDRIVE_DISABLE_UPLOAD_VALIDATION | Controls "--disable-upload-validation" option. Default is 0 | 1 | ### Environment Variables Usage Examples **Verbose Output:**