Check that onion sites are created
This commit is contained in:
parent
0b8ac4f4d1
commit
f9a98d2d07
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue