Check for ssh onion service

This commit is contained in:
Bob Mottram 2017-06-01 18:40:52 +01:00
parent 9e55fee173
commit e3be9cf5e0
1 changed files with 4 additions and 0 deletions

View File

@ -253,6 +253,10 @@ function configure_ssh_onion {
fi fi
SSH_ONION_HOSTNAME=$(add_onion_service ssh ${SSH_PORT} ${SSH_PORT}) SSH_ONION_HOSTNAME=$(add_onion_service ssh ${SSH_PORT} ${SSH_PORT})
if [[ "$SSH_ONION_HOSTNAME" != *'.onion' ]]; then
echo $'ssh onion site not generated'
exit 624128
fi
set_completion_param "ssh onion domain" "${SSH_ONION_HOSTNAME}" set_completion_param "ssh onion domain" "${SSH_ONION_HOSTNAME}"
add_email_hostname "${SSH_ONION_HOSTNAME}" add_email_hostname "${SSH_ONION_HOSTNAME}"