Skip to content

Commit

Permalink
new CLEAN_DOWNLOADS option
Browse files Browse the repository at this point in the history
  • Loading branch information
youegraillot committed Sep 10, 2023
1 parent 3eb01d3 commit 2672910
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ LABEL maintainer="youegraillot"

ENV DEEMIX_SINGLE_USER=true
ENV AUTOCONFIG=true
ENV CLEAN_DOWNLOADS=true
ENV PUID=1000
ENV PGID=1000

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ This allows an easy deployment, with the advantage of having a direct control ov
| `-e PUID=1000` | for UserID |
| `-e PGID=1000` | for GroupID |
| `-e AUTOCONFIG=true` | Enable automatic configuration - see below for explanation |
| `-e FLAC2CUSTOM_ARGS=true` | Sets arguments used when calling flac2custom.sh |
| `-e FLAC2CUSTOM_ARGS=""` | Sets arguments used when calling flac2custom.sh |
| `-e CLEAN_DOWNLOADS=true` | Enable cleaning empty folders in /downloads |
| `-v /config` | Configuration files for Lidarr. |
| `-v /config_deemix` | Configuration files for Deemix. |
| `-v /downloads` | Path to your download folder for music. |
Expand Down
4 changes: 4 additions & 0 deletions root/usr/local/bin/clean-downloads.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

if [ "$CLEAN_DOWNLOADS" != "true" ]; then
exit
fi

echo "Info|Lidarr event: $lidarr_eventtype" >&2

# Handle Lidarr Test event
Expand Down

0 comments on commit 2672910

Please sign in to comment.