summaryrefslogtreecommitdiffstats
path: root/elchos/root-image/krebs/bin/tor_publish_ssh.ship
blob: 2ecee9fb443b19a1f897235174bdff542a2225b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env ship
#@include core
. /krebs/lib/core
#@include network
. /krebs/lib/network
#@include tor
. /krebs/lib/tor

test -w "$torrc" || ( error "$torrc is not writable!"; exit 1 ) || exit 1

configure_hidden_service
cat $hidden_service_dir/hostname | send_irc