moved scripts and templates out of transmission daemon home folder. this allows mounting of /etc/transmission-daemon to keep state, ref issue #22
This commit is contained in:
@@ -17,5 +17,5 @@ auth-user-pass /config/openvpn-credentials.txt
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -18,5 +18,5 @@ crl-verify /etc/openvpn/pia/crl.pem
|
||||
|
||||
# OpenVPN control startup and shut down of transmission
|
||||
script-security 2
|
||||
up /etc/transmission-daemon/start.sh
|
||||
down /etc/transmission-daemon/stop.sh
|
||||
up /etc/transmission/start.sh
|
||||
down /etc/transmission/stop.sh
|
||||
|
@@ -48,6 +48,6 @@ echo $TRANSMISSION_RPC_USERNAME > /config/transmission-credentials.txt
|
||||
echo $TRANSMISSION_RPC_PASSWORD >> /config/transmission-credentials.txt
|
||||
|
||||
# Persist transmission settings for use by transmission-daemon
|
||||
dockerize -template /etc/transmission-daemon/environment-variables.tmpl:/etc/transmission-daemon/environment-variables.sh /bin/true
|
||||
dockerize -template /etc/transmission/environment-variables.tmpl:/etc/transmission/environment-variables.sh /bin/true
|
||||
|
||||
exec openvpn --config "$OPENVPN_CONFIG"
|
||||
|
Reference in New Issue
Block a user