From: Christian Heller <c.heller@plomlompom.de>
Date: Mon, 10 Jan 2022 17:58:31 +0000 (+0100)
Subject: On Seedbox setup, avoid endless hashing.
X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/decks/processes?a=commitdiff_plain;h=e6322abd2e985e59e8320e92a5b9b3082f21375a;p=config

On Seedbox setup, avoid endless hashing.
---

diff --git a/stretch/setup_scripts/setup_seedbox.sh b/stretch/setup_scripts/setup_seedbox.sh
index 32c7791..a2d2187 100755
--- a/stretch/setup_scripts/setup_seedbox.sh
+++ b/stretch/setup_scripts/setup_seedbox.sh
@@ -5,6 +5,7 @@ set -e
 
 # As according to <https://rtorrent-docs.readthedocs.io/en/latest/cookbook.html#modernized-configuration-template>
 su -lc "curl -Ls 'https://raw.githubusercontent.com/wiki/rakshasa/rtorrent/CONFIG-Template.md' | grep -A9999 '^######' | grep -B9999 '^### END' | sed -re \"s:/home/USERNAME:\$HOME:\" >~/.rtorrent.rc" plom
+su -lc "echo 'pieces.hash.on_completion.set = no' >> ~/.rtorrent.rc" plom
 su -lc "mkdir ~/rtorrent" plom
 
 # As according to <https://unix.stackexchange.com/a/475485>