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 - PGID=1001
- TZ=America/New_York - TZ=America/New_York
volumes: volumes:
- /home/meftimes/docker/gluetun-transmission-chromium/transmission-config:/config - /media/transmission/config:/config
- /home/meftimes/docker/transmission/downloads:/downloads - /media/transmission/downloads:/downloads
- /home/meftimes/docker/gluetun-transmission-chromium/watch:/watch - /media/transmission/watch:/watch
labels: labels:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.passHostHeader=true" - "traefik.passHostHeader=true"

View File

@ -1,23 +1,29 @@
#!/bin/bash #!/bin/bash
#Requires systemd unit (transmission.service) to run on boot #Requires systemd unit to run on boot
# #
#[Unit] #[Unit]
#Description=Script #Description=Script
# #
#[Service] #[Service]
#ExecStart=/usr/bin/transmission-port.sh #ExecStart=/usr/bin/transmission-port.sh
#User=meftimes
#Group=meftimes
# #
#[Install] #[Install]
#WantedBy=multi-user.target #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 sleep 10
docker stop transmission docker stop transmission
sleep 10 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 sleep 10
docker start transmission docker start transmission
sleep 10 sleep 10