Skip to content
Snippets Groups Projects
Commit 219ab9db authored by Mylo's avatar Mylo
Browse files

:wrench: Updated deluge app.

parent e3d8f311
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,7 @@ RUN \
openssl \
p7zip \
unrar \
libcap \
unzip && \
apk add --no-cache \
--repository http://nl.alpinelinux.org/alpine/edge/testing \
......@@ -58,9 +59,9 @@ RUN mkdir /configs
COPY configs /configs
RUN chmod +x /Entrypoint.sh
# ports
EXPOSE 8112 58846 58946 58946/udp
RUN setcap cap_net_bind_service=+ep /usr/bin/python2.7
ENTRYPOINT /Entrypoint.sh
# ports
EXPOSE 80 58846 58946 58946/udp
CMD ["/init"]
\ No newline at end of file
ENTRYPOINT /Entrypoint.sh
\ No newline at end of file
......@@ -15,5 +15,5 @@
"default_daemon": "127.0.0.1:58846",
"sidebar_multiple_filters": true,
"pwd_salt": "5588bea86a36353faf34c488a54e81a39a8fab27",
"port": 8112
"port": 80
}
\ No newline at end of file
......@@ -13,9 +13,11 @@ mkdir -p /torrents/config/watch
mv /configs/* /torrents/config/deluge/
rm -fr /configs
chown -R abc:abc /torrents
chown -R 1000:1000 /torrents
chmod +x /deluge-pass.py
/deluge-pass.py /torrents/config/deluge ${DELUGE_PASSWORD}
exec "/init"
cat /torrents/config/deluge/auth | grep "${DELUGE_USERNAME}" || echo "${DELUGE_USERNAME}:${DELUGE_PASSWORD}:10" >> /torrents/config/deluge/auth
exec "/init"
\ No newline at end of file
......@@ -4,6 +4,9 @@ UMASK_SET=${UMASK_SET:-022}
umask "$UMASK_SET"
s6-setuidgid abc /usr/bin/deluged -c /torrents/config/deluge/ -d --loglevel=info -l /torrents/config/log/deluged.log &
echo $(date) && sleep 10 && echo $(date) && kill -9 $(pgrep -f '/usr/bin/deluged')
exec \
s6-setuidgid abc /usr/bin/deluged -c /torrents/config/deluge/ \
-d --loglevel=info -l /torrents/config/log/deluged.log
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment