consolidate source scripts, retry for extip

pull/23/head
binhex 5 years ago
parent 6bef741324
commit edc22765e8

@ -11,10 +11,3 @@ startsecs = 0
user = nobody
command = /home/nobody/watchdog.sh
umask = 000
[program:privoxy-script]
autorestart = false
startsecs = 0
user = nobody
command = /home/nobody/privoxy.sh
umask = 000

@ -153,9 +153,6 @@ if [[ $VPN_ENABLED == "yes" ]]; then
# force removal of mac os resource fork files in ovpn folder
rm -rf /config/openvpn/._*.ovpn
# remove temporary file from previous run, used to confirm all iptables chain policies are set to drop
rm -f /tmp/checkiptables || true
# wildcard search for openvpn config files (match on first result)
export VPN_CONFIG=$(find /config/openvpn -maxdepth 1 -name "*.ovpn" -print -quit)

@ -44,11 +44,8 @@ while true; do
# forcibly set allow anonymous access from localhost to api (used to change incoming port)
sed -i 's~^WebUI\\LocalHostAuth=.*~WebUI\\LocalHostAuth=false~g' "${qbittorrent_config}"
# run script to check iptables chain policy is in place (will block until configured)
source /home/nobody/checkiptables.sh
# run script to check ip is valid for tunnel device (will block until valid)
source /home/nobody/getvpnip.sh
# run script to get all required info
source /home/nobody/preruncheck.sh
# if vpn_ip is not blank then run, otherwise log warning
if [[ ! -z "${vpn_ip}" ]]; then
@ -91,14 +88,8 @@ while true; do
fi
# run scripts to identify external ip address
source /home/nobody/getvpnextip.sh
if [[ "${VPN_PROV}" == "pia" ]]; then
# run scripts to identify vpn port
source /home/nobody/getvpnport.sh
# if vpn port is not an integer then dont change port
if [[ ! "${VPN_INCOMING_PORT}" =~ ^-?[0-9]+$ ]]; then

Loading…
Cancel
Save