diff --git a/gluetun-transmission-chromium/gluetun-transmission-chromium.yml b/gluetun-transmission-chromium/gluetun-transmission-chromium.yml index d91adf4..6fe8062 100644 --- a/gluetun-transmission-chromium/gluetun-transmission-chromium.yml +++ b/gluetun-transmission-chromium/gluetun-transmission-chromium.yml @@ -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" diff --git a/gluetun-transmission-chromium/transmission-port.sh b/gluetun-transmission-chromium/transmission-port.sh index 9e5358f..d390fd3 100755 --- a/gluetun-transmission-chromium/transmission-port.sh +++ b/gluetun-transmission-chromium/transmission-port.sh @@ -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