Check for ssh onion service
This commit is contained in:
parent
9e55fee173
commit
e3be9cf5e0
|
@ -253,6 +253,10 @@ function configure_ssh_onion {
|
|||
fi
|
||||
|
||||
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}"
|
||||
add_email_hostname "${SSH_ONION_HOSTNAME}"
|
||||
|
|
Loading…
Reference in New Issue