update paths for transmission

master
meftimes 2023-12-24 11:01:52 -05:00
parent 4380080383
commit 8b7195e42f
2 changed files with 14 additions and 8 deletions

View File

@ -27,9 +27,9 @@ services:
- PGID=1001
- TZ=America/New_York
volumes:
- /home/meftimes/docker/gluetun-transmission-chromium/transmission-config:/config
- /home/meftimes/docker/transmission/downloads:/downloads
- /home/meftimes/docker/gluetun-transmission-chromium/watch:/watch
- /media/transmission/config:/config
- /media/transmission/downloads:/downloads
- /media/transmission/watch:/watch
labels:
- "traefik.enable=true"
- "traefik.passHostHeader=true"

View File

@ -1,23 +1,29 @@
#!/bin/bash
#Requires systemd unit (transmission.service) to run on boot
#Requires systemd unit to run on boot
#
#[Unit]
#Description=Script
#
#[Service]
#ExecStart=/usr/bin/transmission-port.sh
#User=meftimes
#Group=meftimes
#
#[Install]
#WantedBy=multi-user.target
# Make executable and move to /usr/bin/
#sleep 120
#docker stop transmission
#sleep 10
#sed -i "/\"peer-port\"/c\ \"peer-port\": $(docker exec -it gluetun cat /tmp/gluetun/forwarded_port)," /home/meftimes/docker/gluetun-transmission-chromium/transmission-config/settings.json
#sleep 10
#docker start transmission
#sleep 10
#docker restart chromium
sleep 10
docker stop transmission
sleep 10
sed -i "/\"peer-port\"/c\ \"peer-port\": $(docker exec gluetun cat /tmp/gluetun/forwarded_port)," /home/meftimes/docker/gluetun-transmission-chromium/transmission-config/settings.json
sed -i "/\"peer-port\"/c\ \"peer-port\": $(docker exec gluetun cat /tmp/gluetun/forwarded_port)," /media/transmission/config/settings.json
sleep 10
docker start transmission
sleep 10