Skip to content
Snippets Groups Projects
Verified Commit 4b75e358 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

feat: persist session

parent a3bcd59c
No related branches found
No related tags found
No related merge requests found
Pipeline #2890 passed
......@@ -78,6 +78,7 @@ ENV EXTERNAL_IP_CMD=""
ENV EXTERNAL_IP=""
VOLUME ["/data"]
VOLUME ["/session"]
VOLUME ["/tmp"]
ENTRYPOINT ["/entrypoint.sh"]
#!/bin/sh
set -eu
mkdir -p /tmp/.session
echo > /tmp/rtorrent.log
rm /tmp/.session/rtorrent.lock /tmp/.session/rtorrent.pid || true
rm /session/rtorrent.lock /session/rtorrent.pid || true
if [ -n "$EXTERNAL_IP_CMD" ]; then
EXTERNAL_IP=$(eval "$EXTERNAL_IP_CMD")
......
......@@ -4,8 +4,8 @@
method.insert = cfg.download, private|const|string, /data/
method.insert = cfg.tmp, private|const|string, /tmp/
method.insert = cfg.session, private|const|string, /session/
method.insert = cfg.logfile, private|const|string, (cat,(cfg.tmp),"rtorrent.log")
method.insert = cfg.session, private|const|string, (cat,(cfg.tmp),".session/")
# Listening port for incoming peer traffic
network.port_range.set = 50000-50000
......
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