From fc26f5136b2418c8bfb0e139f35375f1c1481150 Mon Sep 17 00:00:00 2001 From: Greg Pringle <5757188+Tailslide@users.noreply.github.com> Date: Tue, 25 May 2021 11:20:47 -0600 Subject: [PATCH] Take PIA port forward credentials from config file --- openvpn/pia_port_forwarding.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/openvpn/pia_port_forwarding.sh b/openvpn/pia_port_forwarding.sh index c172dcd..4049405 100644 --- a/openvpn/pia_port_forwarding.sh +++ b/openvpn/pia_port_forwarding.sh @@ -9,8 +9,11 @@ export PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:/root/b curl_max_time=15 curl_retry=5 curl_retry_delay=15 -user='PIA_USER' -pass='PIA_PASS' +exec 6< /config/openvpn/credentials.conf + +read user <&6 +read pass <&6 + CONFFILE=/config/qBittorrent/config/qBittorrent.conf ###### Nextgen PIA port forwarding ##################