diff --git a/Dockerfile b/Dockerfile index 9da4128..cb9ac8c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" \ @@ -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 diff --git a/root/etc/s6-overlay/s6-rc.d/init-deluge-config/run b/root/etc/s6-overlay/s6-rc.d/init-deluge-config/run index e15e365..40c7c3a 100755 --- a/root/etc/s6-overlay/s6-rc.d/init-deluge-config/run +++ b/root/etc/s6-overlay/s6-rc.d/init-deluge-config/run @@ -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