[werwolf@power] ~
❯ cat /opt/scripts/transmission_additional_trackers.sh
#!/usr/bin/env bash
#for TRACKER in $(cat /home/werwolf/.config/transmission-daemon/additional_trackers.lst && curl -s https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt)
for TRACKER in $(cat /home/werwolf/.config/transmission-daemon/additional_trackers.lst)
do
echo "Adding $TRACKER to all torrents"
transmission-edit -a "$TRACKER" /home/werwolf/.config/transmission-daemon/torrents/*
# transmission-edit -d "$TRACKER" /home/werwolf/.config/transmission-daemon/torrents/*
# transmission-remote 127.0.0.1:9091 -n werwolf:НЕСКАЖУ --torrent all -td $TRACKER
done
chown -R werwolf:users /home/werwolf/.config/transmission-daemon
systemctl restart transmission-daemon.service