|
|
@ -46,7 +46,6 @@ while true; do
|
|
|
|
qbittorrent_running="false"
|
|
|
|
qbittorrent_running="false"
|
|
|
|
privoxy_running="false"
|
|
|
|
privoxy_running="false"
|
|
|
|
ip_change="false"
|
|
|
|
ip_change="false"
|
|
|
|
vpn_port_change="false"
|
|
|
|
|
|
|
|
qbittorrent_port_change="false"
|
|
|
|
qbittorrent_port_change="false"
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "${VPN_ENABLED}" == "yes" ]]; then
|
|
|
|
if [[ "${VPN_ENABLED}" == "yes" ]]; then
|
|
|
@ -145,13 +144,6 @@ while true; do
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# if port is detected as closed then create empty file to trigger restart of openvpn process (restart code in /root/openvpn.sh)
|
|
|
|
|
|
|
|
if [[ "${vpn_port_change}" == "true" ]];then
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
touch "/tmp/portclosed"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "${ENABLE_PRIVOXY}" == "yes" ]]; then
|
|
|
|
if [[ "${ENABLE_PRIVOXY}" == "yes" ]]; then
|
|
|
|
|
|
|
|
|
|
|
|
if [[ "${privoxy_running}" == "false" ]]; then
|
|
|
|
if [[ "${privoxy_running}" == "false" ]]; then
|
|
|
|