Commit Graph

21 Commits

Author SHA1 Message Date
kumy
efe4824546 Fix detecting ipv4 tunnel address
The original grep expression will fails if server support also ipv6.

```
qbittorrent    | + ip addr show tun0
qbittorrent    | + grep inet
qbittorrent    | + awk { print $2 }
qbittorrent    | + local_vpn_ip=10.2.10.6
qbittorrent    | fe80::faac:xxx:xxx:xxx/64
qbittorrent    | + pia_client_id_file=/etc/transmission/pia_client_id
qbittorrent    | + transmission_settings_file=/data/transmission-home/settings.json
qbittorrent    | + port_assignment_url=https://www.privateinternetaccess.com/vpninfo/port_forward_assignment
qbittorrent    | + cat /etc/transmission/pia_client_id
qbittorrent    | + pia_client_id=6fe581ea5b6273a88ed8421b4ceed454
qbittorrent    | + [ -z 6fe581ea5b6273a88ed8421b4ceed454 ]
qbittorrent    | + curl -d user=xxx&pass=xxx&client_id=6fe581ea5b6273a88ed8421b4ceed454&local_ip=10.2.10.6
qbittorrent    | fe80::faac:xxx:xxx:xxx/64 https://www.privateinternetaccess.com/vpninfo/port_forward_assignment
qbittorrent    |   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
qbittorrent    |                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
```
2016-11-03 20:18:16 +01:00
Kristian Haugene
e126e6d502 Only symlink /dev/urandom if /dev/random doesn't exist 2015-10-31 18:39:56 +01:00
Matthew Crenshaw
64770087f9 Fix entropy error, enable transmission logging 2015-10-29 12:08:20 -04:00
Doug Daniels
0faafc3a99 Merge remote-tracking branch 'origin/dev' into transmission-resume-torrent
Conflicts:
	transmission/start.sh
	transmission/updatePort.sh
2015-08-13 11:26:21 -05:00
Doug Daniels
8d43c09bfb Closes #23 - Ensure TRANSMISSION_HOME is on a persistent volume to store torrent resume info 2015-08-12 23:57:47 -05:00
Kristian Haugene
0949d82219 moved scripts and templates out of transmission daemon home folder. this allows mounting of /etc/transmission-daemon to keep state, ref issue #22 2015-08-09 21:02:05 +02:00
Kristian Haugene
91ccd7e3dd modified startup scripts to support more vpn providers 2015-08-07 23:07:55 +02:00
Kristian Haugene
63cfc08e99 cleanup some legacy intermediate script 2015-05-25 13:26:23 +02:00
Kristian Haugene
553dbf628c use same script names inside and outside container. cleaner adding them as well 2015-05-24 21:54:23 +02:00
Kristian Haugene
8a3a0b30e9 persist env variables on startup. conform to /bin/sh 2015-05-24 20:40:25 +02:00
Kristian Haugene
0d918b22f9 set fixed transmission-daemon home, move dockerize settings.json till we know tun0 ip 2015-05-24 19:05:05 +02:00
Kristian Haugene
1d0e584591 standardize on sh 2015-05-24 18:32:08 +02:00
Ian Neubert
ceab19795b Find IP of tun0 during transmission start up and set the configuration to bind to it. Closes #11 2015-05-23 09:30:58 -07:00
Ian Neubert
01cec65568 Renamed files in repo that end up as start.sh inside container to start.sh in the repo too.
Updated all piaconfigs to force tun0
2015-05-23 09:06:08 -07:00
Kristian Haugene
f7a7c2d4b4 fixing switch for keeping transmission state. also persist transmission rpc username and password for port updates if authentication is enabled. 2015-05-10 22:15:25 +02:00
Kristian Haugene
629e8d0fac transmission startup handles setting.json, and possible to have transmission data-dir on mounted volume for persistent state 2015-05-10 20:51:19 +02:00
Ian Neubert
268480358d Added PIA username/password to env vars
Added transmission settings to env vars. Fixed #8.
Updated readme.
Added ability to override /etc/resolv.conf. Fixes #4.
Save docker image size by combining all apt commands into a single RUN statement.
2015-05-09 15:27:08 -07:00
Kristian Haugene
f053cb6c42 enhanced a few things. running plain ubuntu, openvpn starts transmission when connection is establised and so on 2015-05-07 21:34:34 +02:00
Kristian Haugene
0e4f1da9ce now passing configuration to container by mounting /config 2014-11-16 14:19:56 +01:00
Kristian Haugene
0673efeaf4 run every hour 2014-11-11 22:09:02 +01:00
Kristian Haugene
269cba4397 removed supervisord, using baseimage-docker init system. added automatic port updates. 2014-11-11 22:07:13 +01:00