Check that onion address was created

This commit is contained in:
Bob Mottram 2016-03-31 12:27:37 +01:00
parent 46b3e8f3d7
commit 92dd66d4fb
1 changed files with 5 additions and 1 deletions

View File

@ -9666,6 +9666,10 @@ function install_mediagoblin {
else
sed -i "s|Mediagoblin onion domain.*|Mediagoblin onion domain:${MEDIAGOBLIN_ONION_HOSTNAME}|g" $COMPLETION_FILE
fi
if [[ $MEDIAGOBLIN_ONION_HOSTNAME == *"not found"* ]]; then
echo $'Problem creating onion address for mediagoblin'
exit 672652
fi
# web config
MEDIAGOBLIN_VIRTUAL_HOST=/etc/nginx/sites-available/$MEDIAGOBLIN_DOMAIN_NAME