Skip to content

Commit

Permalink
Adds ERROR_FILE docker env param
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymoulin committed Nov 28, 2021
1 parent ab4fe7f commit 956ee95
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions docker/Dockerfile
Expand Up @@ -13,6 +13,7 @@ ENV REMOVE=0
ENV ONESHOT=0
ENV LISTENER_ONLY=0
ENV DEDUP_API=''
ENV ERROR_FILE=''

RUN apk update && \
apk add gcc g++ linux-headers libxml2-dev libxslt-dev --no-cache --virtual .build-deps && \
Expand Down
5 changes: 2 additions & 3 deletions docker/README.md
Expand Up @@ -33,9 +33,8 @@ These environments variable will produce a different behaviour
* `REMOVE` Remove file on a successful upload (boolean, (default: false)) - pass to true if you want to remove files
* `ONESHOT` Execute only once without listening to folder events (boolean, (default: false)) - pass to true if you want to execute only once (also remove `--restart=always` from docker parameters)
* `LISTENER_ONLY` Listener only, upload files only when added not at start (boolean, (default: false)) - pass to true if you want to listen
* `DEDUP_API` Url to the deduplicate API (string (default: None)) - Will call deduplicate API before trying to sample and upload to Google Music
* `LOGIN` Login (for cover art uploading) (string (default: None)) - Login of your Google Music account for cover art uploading
* `PASSWORD` Password (for cover art uploading) (string (default: None)) - Password of your Google Music account for cover art uploading
* `DEDUP_API` Url to the deduplicate API (string (default: None)) - Will call deduplicate API before trying to sample and upload to Youtube Music
* `ERROR_FILE` Path to logs (string (default: None)) - Will logs into the specified file - default stderr

### Example
```
Expand Down
3 changes: 3 additions & 0 deletions docker/daemon.sh
Expand Up @@ -22,6 +22,9 @@ else
if [[ "$DEDUP_API" ]]; then
PARAMS="$PARAMS -w $DEDUP_API"
fi
if [[ "$ERROR_FILE" ]]; then
PARAMS="$PARAMS -e $ERROR_FILE"
fi
youtube-music-upload -d /media/library -a /root/oauth/oauth.key $PARAMS &
PID=$!
wait $PID
Expand Down

0 comments on commit 956ee95

Please sign in to comment.