Check that onion sites are created

This commit is contained in:
Bob Mottram 2017-06-11 11:54:24 +01:00
parent 0b8ac4f4d1
commit f9a98d2d07
1 changed files with 11 additions and 0 deletions

View File

@ -323,7 +323,18 @@ function install_rss_main {
rss_create_database rss_create_database
RSS_READER_ONION_HOSTNAME=$(add_onion_service rss 80 ${RSS_READER_ONION_PORT}) RSS_READER_ONION_HOSTNAME=$(add_onion_service rss 80 ${RSS_READER_ONION_PORT})
if [[ $RSS_READER_ONION_HOSTNAME != *".onion" ]]; then
echo $'Unable to create onion address for rss reader site'
exit 7352582
fi
sleep 4
RSS_MOBILE_READER_ONION_HOSTNAME=$(add_onion_service rss_mobile 80 ${RSS_MOBILE_READER_ONION_PORT}) RSS_MOBILE_READER_ONION_HOSTNAME=$(add_onion_service rss_mobile 80 ${RSS_MOBILE_READER_ONION_PORT})
if [[ $RSS_MOBILE_READER_ONION_HOSTNAME != *".onion" ]]; then
echo $'Unable to create onion address for rss mobile site'
exit 7639532
fi
echo 'server {' > /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME echo 'server {' > /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME
echo " listen 127.0.0.1:$RSS_MOBILE_READER_ONION_PORT;" >> /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME echo " listen 127.0.0.1:$RSS_MOBILE_READER_ONION_PORT;" >> /etc/nginx/sites-available/$RSS_READER_DOMAIN_NAME