mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-16 12:45:14 +02:00
Implement Docker capability to disable validations
* Implement Docker options to utilise --disable-download-validation and --disable-upload-validation
This commit is contained in:
parent
635102e8af
commit
23f2e2f835
|
@ -125,6 +125,20 @@ if [ "${ONEDRIVE_DRYRUN:=0}" == "1" ]; then
|
||||||
ARGS=(--dry-run ${ARGS[@]})
|
ARGS=(--dry-run ${ARGS[@]})
|
||||||
fi
|
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
|
if [ ${#} -gt 0 ]; then
|
||||||
ARGS=("${@}")
|
ARGS=("${@}")
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -275,6 +275,8 @@ docker run $firstRun --restart unless-stopped --name onedrive -v onedrive_conf:/
|
||||||
| <B>ONEDRIVE_DISPLAY_CONFIG</B> | Controls "--display-running-config" switch on onedrive sync. Default is 0 | 1 |
|
| <B>ONEDRIVE_DISPLAY_CONFIG</B> | Controls "--display-running-config" switch on onedrive sync. Default is 0 | 1 |
|
||||||
| <B>ONEDRIVE_SINGLE_DIRECTORY</B> | Controls "--single-directory" option. Default = "" | "mydir" |
|
| <B>ONEDRIVE_SINGLE_DIRECTORY</B> | Controls "--single-directory" option. Default = "" | "mydir" |
|
||||||
| <B>ONEDRIVE_DRYRUN</B> | Controls "--dry-run" option. Default is 0 | 1 |
|
| <B>ONEDRIVE_DRYRUN</B> | Controls "--dry-run" option. Default is 0 | 1 |
|
||||||
|
| <B>ONEDRIVE_DISABLE_DOWNLOAD_VALIDATION</B> | Controls "--disable-download-validation" option. Default is 0 | 1 |
|
||||||
|
| <B>ONEDRIVE_DISABLE_UPLOAD_VALIDATION</B> | Controls "--disable-upload-validation" option. Default is 0 | 1 |
|
||||||
|
|
||||||
### Environment Variables Usage Examples
|
### Environment Variables Usage Examples
|
||||||
**Verbose Output:**
|
**Verbose Output:**
|
||||||
|
|
|
@ -295,6 +295,8 @@ podman run -it --name onedrive_work --user "${ONEDRIVE_UID}:${ONEDRIVE_GID}" \
|
||||||
| <B>ONEDRIVE_DISPLAY_CONFIG</B> | Controls "--display-running-config" switch on onedrive sync. Default is 0 | 1 |
|
| <B>ONEDRIVE_DISPLAY_CONFIG</B> | Controls "--display-running-config" switch on onedrive sync. Default is 0 | 1 |
|
||||||
| <B>ONEDRIVE_SINGLE_DIRECTORY</B> | Controls "--single-directory" option. Default = "" | "mydir" |
|
| <B>ONEDRIVE_SINGLE_DIRECTORY</B> | Controls "--single-directory" option. Default = "" | "mydir" |
|
||||||
| <B>ONEDRIVE_DRYRUN</B> | Controls "--dry-run" option. Default is 0 | 1 |
|
| <B>ONEDRIVE_DRYRUN</B> | Controls "--dry-run" option. Default is 0 | 1 |
|
||||||
|
| <B>ONEDRIVE_DISABLE_DOWNLOAD_VALIDATION</B> | Controls "--disable-download-validation" option. Default is 0 | 1 |
|
||||||
|
| <B>ONEDRIVE_DISABLE_UPLOAD_VALIDATION</B> | Controls "--disable-upload-validation" option. Default is 0 | 1 |
|
||||||
|
|
||||||
### Environment Variables Usage Examples
|
### Environment Variables Usage Examples
|
||||||
**Verbose Output:**
|
**Verbose Output:**
|
||||||
|
|
Loading…
Reference in a new issue