31 lines
743 B
Bash
Executable File
31 lines
743 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#Requires systemd unit to run on boot
|
|
#
|
|
#[Unit]
|
|
#Description=Script
|
|
#
|
|
#[Service]
|
|
#ExecStart=/usr/bin/transmission-port.sh
|
|
#
|
|
#[Install]
|
|
#WantedBy=multi-user.target
|
|
|
|
#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)," /media/transmission/config/settings.json
|
|
sleep 10
|
|
docker start transmission
|
|
sleep 10
|
|
docker restart chromium
|