Revert "Make verbose logging output optional on Docker (#638)"

This reverts commit e8c3c236ef.
This commit is contained in:
abraunegg 2019-09-09 08:53:08 +10:00
parent 25b030ec01
commit 69f343b5ed
2 changed files with 1 additions and 17 deletions

View file

@ -26,15 +26,7 @@ fi
chown "${oduser}:${odgroup}" /onedrive/ /onedrive/conf
# Default parameters
ARGS=(--monitor --confdir /onedrive/conf --syncdir /onedrive/data)
#Make Verbose output optional, based on an environment variable
# default behaviour is verbose (to continue to behave as before)
if ! [ "${ONEDRIVE_VERBOSE:=1}" == "0" ]; then
echo "# We are being verbose"
echo "# set ONEDRIVE_VERBOSE environment to 0 (Zero) to be less chatty"
ARGS=(--verbose ${ARGS})
fi
ARGS=(--monitor --verbose --confdir /onedrive/conf --syncdir /onedrive/data)
if [ ${#} -gt 0 ]; then
ARGS=("${@}")

View file

@ -101,14 +101,6 @@ Or you can map your own config folder to config volume (copy stuffs from docker
The detailed document for the config can be found here: [additional-configuration](https://github.com/abraunegg/onedrive#additional-configuration)
## Environment Variables
| Variable | Purpose | Sample Value |
| ---------------- | --------------------------------------------------- |:-------------:|
| **ONEDRIVE_UID** | UserID (UID) to run as | 1000 |
| **ONEDRIVE_GID** | GroupID (GID) to run as | 1000 |
| **ONEDRIVE_VERBOSE** | Controls "verbose" switch on onedrive sync. Default (i.e. not set or non-zero value) behaviour is to continue to be verbose as before | 0 |
## Run or update with one script
If you are experienced with docker and onedrive, you can use the following script: