real-world-onion-sites/add-new-sites.sh

30 lines
1.3 KiB
Bash
Raw Normal View History

2018-07-09 19:03:04 -04:00
#!/bin/sh
while read category scheme onion_address proof_url title ; do
2018-07-09 19:03:04 -04:00
if [ ! -d "directory/$category" ] ; then
echo oops: bad category $category for $onion_address
exit 1
fi
for existing in `echo directory/*/$onion_address` ; do
if [ -d "$existing" ] ; then
echo onion exists at $existing for $title
continue 2 # skip 2 levels to the next onion
fi
done
dir="directory/$category/$onion_address"
echo "making $dir"
mkdir -p $dir || exit 1
echo $title >$dir/title
echo $proof_url >$dir/proof
echo $scheme://$onion_address/ >$dir/urls # add more by hand, later
2018-07-09 19:03:04 -04:00
done <<EOF
securedrop-for-organisations http lzpczap7l3zxu7zv.onion https://www.icij.org/securedrop ICIJ / International Consortium of Investigative Journalists
2018-07-10 20:54:14 -04:00
tech-and-software https hzwjmjimhr7bdmfv2doll4upibt5ojjmpo3pbp5ctwcg37n3hyk7qzid.onion proof-in-ssl-cert Ablative Hosting
civil-society-and-community https xychelseaxqpywe4.onion https://twitter.com/xychelsea/status/989539441978040321 Chelsea Manning for US Senate
2018-07-10 20:54:14 -04:00
news-and-media https p53lf57qovyuvwsc6xnrppyply3vtqm7l6pcobkmyqsiofyeznfu5uqd.onion proof-in-ssl-cert ProPublica
securedrop-for-organisations https y27vf7g2ce5g3fnl.onion proof-in-ssl-cert Aftonbladet
2018-07-09 19:03:04 -04:00
EOF