Add torrent client.
This commit is contained in:
parent
9bc7660e65
commit
acd9008b22
3 changed files with 8 additions and 0 deletions
1
configuration.env
Normal file
1
configuration.env
Normal file
|
@ -0,0 +1 @@
|
|||
OVPN_CONFIGURATION_FILE=/opt/config.ovpn
|
|
@ -8,5 +8,7 @@ services:
|
|||
volumes:
|
||||
- ./config.ovpn:/opt/config.ovpn
|
||||
- ./auth.txt:/opt/auth.txt
|
||||
- /etc/passwd:/etc/passwd
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
env_file: ./configuration.env
|
||||
|
|
|
@ -6,5 +6,10 @@ create_net_dev() {
|
|||
chmod 600 /dev/net/tun
|
||||
}
|
||||
|
||||
connect_vpn() {
|
||||
openvpn --config "$OVPN_CONFIGURATION_FILE" --daemon
|
||||
}
|
||||
|
||||
create_net_dev
|
||||
connect_vpn
|
||||
"$@"
|
||||
|
|
Loading…
Reference in a new issue