|
@@ -157,10 +157,12 @@ function configure_email_onion {
|
157
|
157
|
return
|
158
|
158
|
fi
|
159
|
159
|
|
160
|
|
- echo 'HiddenServiceDir /var/lib/tor/hidden_service_email/' >> /etc/tor/torrc
|
161
|
|
- echo 'HiddenServicePort 25 127.0.0.1:25' >> /etc/tor/torrc
|
162
|
|
- echo 'HiddenServicePort 587 127.0.0.1:587' >> /etc/tor/torrc
|
163
|
|
- echo 'HiddenServicePort 465 127.0.0.1:465' >> /etc/tor/torrc
|
|
160
|
+ if ! grep -q "hidden_service_email" /etc/tor/torrc; then
|
|
161
|
+ echo 'HiddenServiceDir /var/lib/tor/hidden_service_email/' >> /etc/tor/torrc
|
|
162
|
+ echo 'HiddenServicePort 25 127.0.0.1:25' >> /etc/tor/torrc
|
|
163
|
+ echo 'HiddenServicePort 587 127.0.0.1:587' >> /etc/tor/torrc
|
|
164
|
+ echo 'HiddenServicePort 465 127.0.0.1:465' >> /etc/tor/torrc
|
|
165
|
+ fi
|
164
|
166
|
|
165
|
167
|
function_check onion_update
|
166
|
168
|
onion_update
|
|
@@ -170,6 +172,7 @@ function configure_email_onion {
|
170
|
172
|
|
171
|
173
|
if [[ $(onion_service_exists email) == "0" ]]; then
|
172
|
174
|
echo $"email onion site hostname not found"
|
|
175
|
+ systemctl restart tor
|
173
|
176
|
exit 782352
|
174
|
177
|
fi
|
175
|
178
|
|