Skip to content

Commit

Permalink
cleanup better and add ltconfig plugin (latest) to build process
Browse files Browse the repository at this point in the history
  • Loading branch information
zakkarry committed Sep 27, 2024
1 parent 4b11b1b commit 581880f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ RUN \
pip install /app/deluge-src && \
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.20/ \
pygeoip && \
mkdir /app/lt-config_mhertz && \
cd /app/lt-config_mhertz && \
git clone https://github.com/mhertz/deluge-ltconfig.git . && \
python setup.py bdist_egg && \
cd /app/lt-config_mhertz/dist && \
mv ltConfig-*.egg /defaults/$(echo ltConfig-*.egg | sed 's/-py[0-9]\+\.[0-9]\+//') && \
echo "**** grab GeoIP database ****" && \
curl -L --retry 10 --retry-max-time 60 --retry-all-errors \
"https://mailfud.org/geoip-legacy/GeoIP.dat.gz" \
Expand All @@ -60,6 +66,9 @@ LABEL maintainer="zakkarry"
# add local files
COPY root/ /

# cleanup (remove root dir copy)
RUN rm -rf /version.sh

# add unrar
COPY --from=unrar /usr/bin/unrar-alpine /usr/bin/unrar

Expand Down
3 changes: 3 additions & 0 deletions root/etc/s6-overlay/s6-rc.d/init-deluge-config/run
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
if [[ ! -f /config/core.conf ]]; then
cp /defaults/core.conf /config/core.conf
fi
if ls /config/plugins/ltConfig*.egg 1> /dev/null 2>&1; then
cp /defaults/ltConfig*.egg /config/plugins
fi

mkdir -p /run/deluged-temp

Expand Down

0 comments on commit 581880f

Please sign in to comment.