|
@@ -58,7 +58,6 @@ function wait_for_onion_service_base {
|
58
|
58
|
sleep_ctr=0
|
59
|
59
|
while [ ! -f ${HIDDEN_SERVICE_PATH}${onion_service_name}/hostname ]; do
|
60
|
60
|
sleep 1
|
61
|
|
- sync
|
62
|
61
|
sleep_ctr=$((sleep_ctr + 1))
|
63
|
62
|
if [ $sleep_ctr -gt 10 ]; then
|
64
|
63
|
break
|
|
@@ -76,12 +75,7 @@ function wait_for_onion_service {
|
76
|
75
|
onion_update
|
77
|
76
|
wait_for_onion_service_base ${onion_service_name}
|
78
|
77
|
fi
|
79
|
|
-
|
80
|
|
- if [ ! -f ${HIDDEN_SERVICE_PATH}${onion_service_name}/hostname ]; then
|
81
|
|
- # try a third time
|
82
|
|
- onion_update
|
83
|
|
- wait_for_onion_service_base ${onion_service_name}
|
84
|
|
- fi
|
|
78
|
+ sync
|
85
|
79
|
}
|
86
|
80
|
|
87
|
81
|
function remove_onion_service {
|