mirror of
https://github.com/MarkusMcNugen/docker-qBittorrentvpn
synced 2024-12-25 02:21:43 +00:00
changing relative path to settings, script can be run from anywhere
This commit is contained in:
parent
d08439ebf5
commit
9c65be536c
@ -7,6 +7,7 @@ username=$(head -1 $PIA_PASSWD_FILE)
|
||||
passwd=$(tail -1 $PIA_PASSWD_FILE)
|
||||
local_vpn_ip=$(ip addr show tun0 | grep inet | awk '{ print $2 }')
|
||||
pia_client_id_file=/etc/transmission-daemon/pia_client_id
|
||||
transmission_settings_file=/etc/transmission-daemon/settings.json
|
||||
port_assignment_url=https://www.privateinternetaccess.com/vpninfo/port_forward_assignment
|
||||
|
||||
#
|
||||
@ -34,7 +35,7 @@ echo "Got new port $new_port from pia"
|
||||
#
|
||||
|
||||
# Check if transmission remote is set up with authentication
|
||||
auth_enabled=$(grep 'rpc-authentication-required\"' settings.json | grep -oE 'true|false')
|
||||
auth_enabled=$(grep 'rpc-authentication-required\"' $transmission_settings_file | grep -oE 'true|false')
|
||||
if [[ "true" = "$auth_enabled" ]]
|
||||
then
|
||||
echo "transmission auth required"
|
||||
|
Loading…
Reference in New Issue
Block a user