2018-07-09 19:03:04 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-07-10 08:36:44 -04:00
|
|
|
while read category scheme onion_address proof_url title ; do
|
2018-08-12 16:58:09 -04:00
|
|
|
test x$category = x && continue
|
|
|
|
|
2018-07-09 19:03:04 -04:00
|
|
|
if [ ! -d "directory/$category" ] ; then
|
|
|
|
echo oops: bad category $category for $onion_address
|
|
|
|
exit 1
|
|
|
|
fi
|
2018-07-10 04:18:46 -04:00
|
|
|
|
|
|
|
for existing in `echo directory/*/$onion_address` ; do
|
|
|
|
if [ -d "$existing" ] ; then
|
|
|
|
echo onion exists at $existing for $title
|
2018-07-10 09:19:06 -04:00
|
|
|
continue 2 # skip 2 levels to the next onion
|
2018-07-10 04:18:46 -04:00
|
|
|
fi
|
|
|
|
done
|
|
|
|
|
|
|
|
dir="directory/$category/$onion_address"
|
2018-07-10 09:19:06 -04:00
|
|
|
echo "making $dir"
|
2018-07-10 04:18:46 -04:00
|
|
|
mkdir -p $dir || exit 1
|
|
|
|
|
|
|
|
echo $title >$dir/title
|
|
|
|
echo $proof_url >$dir/proof
|
2018-07-10 08:36:44 -04:00
|
|
|
echo $scheme://$onion_address/ >$dir/urls # add more by hand, later
|
2018-07-09 19:03:04 -04:00
|
|
|
done <<EOF
|
2018-08-12 18:06:32 -04:00
|
|
|
tech-and-software http kkkkkkkkkk63ava6.onion https://www.qubes-os.org/news/2018/01/23/qubes-whonix-next-gen-tor-onion-services/ Whonix
|
2018-08-12 16:58:09 -04:00
|
|
|
|
2018-07-09 19:03:04 -04:00
|
|
|
EOF
|