This commit is contained in:
rootzoll 2020-05-27 02:50:47 +02:00
parent c8aa290e66
commit 2f57fd6328

View File

@ -78,16 +78,12 @@ ip2tor=""
checkIP2TOR() checkIP2TOR()
{ {
echo "checkIP2TOR"
echo $1
sleep 10
# check if IP2TOR service is already available # check if IP2TOR service is already available
#error="" error=""
#source <(/home/admin/config.scripts/blitz.subscriptions.ip2tor.py subscription-by-service $1) source <(/home/admin/config.scripts/blitz.subscriptions.ip2tor.py subscription-by-service $1)
#if [ ${#error} -eq 0 ]; then if [ ${#error} -eq 0 ]; then
# ip2tor=$1 ip2tor="$1"
#fi fi
# if IP2TOR is not already available: # if IP2TOR is not already available:
# and the checks from avove showed there is SSH forwarding / dynDNS # and the checks from avove showed there is SSH forwarding / dynDNS
@ -102,15 +98,17 @@ checkIP2TOR()
# port="8080" # port="8080"
# toraddress=$(sudo cat /mnt/hdd/tor/lndrest8080/hostname) # toraddress=$(sudo cat /mnt/hdd/tor/lndrest8080/hostname)
# fi # fi
# /home/admin/config.scripts/blitz.subscriptions.ip2tor.py create-ssh-dialog $1 $toraddress $port # /home/admin/config.scripts/blitz.subscriptions.ip2tor.py create-ssh-dialog "$1" "$toraddress" "$port"
# fi # fi
# check again if IP2TOR service is now already available # check again if IP2TOR service is now already available
#error="" error=""
#source <(/home/admin/config.scripts/blitz.subscriptions.ip2tor.py subscription-by-service $1) source <(/home/admin/config.scripts/blitz.subscriptions.ip2tor.py subscription-by-service "$1")
#if [ ${#error} -eq 0 ]; then if [ ${#error} -eq 0 ]; then
# ip2tor=$1 ip2tor="$1"
#fi fi
sleep 10
} }
# Options # Options