Commit Graph

7 Commits

Author SHA1 Message Date
Kristian Haugene
12e6378bfe Replace dockerize, make settings persistent, let settings be overridden by env vars 2020-08-09 18:02:51 +02:00
Kristian Haugene
66c7634f18 Standardize scripts, use bash and double brackets 2019-03-09 18:52:06 +01:00
Fidel Ramos
88ea8ead8f Fix arg passing to start/stop script hooks
When using "$*" all arguments ended up as $1 in the hook scripts,
i.e. $2 and forward they were all blank.

Buggy commit was 9242c6aa0.
2018-09-15 10:54:05 +00:00
Fidel Ramos
9242c6aa08 Pass on arguments to pre and post start/stop hooks
The start.sh and stop.sh scripts receive a set of arguments from
openvpn when invoked from tunnelUp.sh and tunnelDown.sh. They are:

 * $1: network interface for the VPN (e.g. tun0)
 * $2: interface MTU (e.g. 1500)
 * $3: link MTU (e.g. 1570)
 * $4: local IP (e.g. 10.47.10.6)
 * $5: remote IP if TUN (e.g. 10.47.10.5), network mask if TAP
 * $6: "init" or "restart"

This commit makes these arguments available in
transmission-pre-start.sh, transmission-post-start.sh,
transmission-pre-stop.sh and transmission-post-stop.sh.
2018-06-26 15:35:00 +00:00
himred
977fd4984e Update stop.sh 2018-02-08 10:27:24 +01:00
e7d
7451401980 Simplify transmission stop script 2018-01-19 15:52:47 +01: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