docker/gluetun-transmission-chromi.../transmission-port.sh

31 lines
743 B
Bash
Raw Normal View History

2023-12-05 23:40:26 +00:00
#!/bin/bash
2023-12-24 16:01:52 +00:00
#Requires systemd unit to run on boot
2023-12-05 23:40:26 +00:00
#
#[Unit]
#Description=Script
#
#[Service]
#ExecStart=/usr/bin/transmission-port.sh
#
#[Install]
#WantedBy=multi-user.target
2023-12-24 16:01:52 +00:00
#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
2023-12-05 23:40:26 +00:00
sleep 10
docker stop transmission
sleep 10
2023-12-24 16:01:52 +00:00
sed -i "/\"peer-port\"/c\ \"peer-port\": $(docker exec gluetun cat /tmp/gluetun/forwarded_port)," /media/transmission/config/settings.json
2023-12-05 23:40:26 +00:00
sleep 10
docker start transmission
sleep 10
docker restart chromium