mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2024-11-20 18:22:01 +01:00
debug
This commit is contained in:
parent
c8aa290e66
commit
2f57fd6328
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user