Skip to content
Snippets Groups Projects
Commit dfe18fb8 authored by Bob Mottram's avatar Bob Mottram
Browse files

Keep track of sks onion domain

parent 73397491
No related branches found
No related tags found
No related merge requests found
......@@ -149,6 +149,7 @@ function remove_keyserver {
firewall_remove 11372 tcp
sed -i '/keyserver/d' $COMPLETION_FILE
sed -i '/sks onion/d' $COMPLETION_FILE
if [ -d /var/lib/sks ]; then
rm -rf /var/lib/sks
fi
......@@ -299,10 +300,11 @@ function install_keyserver {
onion_update
wait_for_onion_service 'sks'
if [ ! -f /var/lib/tor/hidden_service_xmpp/hostname ]; then
echo $'xmpp onion site hostname not found'
exit 65349
if [ ! -f /var/lib/tor/hidden_service_sks/hostname ]; then
echo $'sks onion site hostname not found'
exit 8352982
fi
SKS_ONION_HOSTNAME=$(cat /var/lib/tor/hidden_service_sks/hostname)
KEYSERVER_ONION_HOSTNAME=$(add_onion_service keyserver 80 ${KEYSERVER_ONION_PORT})
......@@ -410,6 +412,7 @@ function install_keyserver {
set_completion_param "keyserver domain" "$KEYSERVER_DOMAIN_NAME"
set_completion_param "keyserver onion domain" "$KEYSERVER_ONION_HOSTNAME"
set_completion_param "sks onion domain" "$SKS_ONION_HOSTNAME"
APP_INSTALLED=1
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment