Fix removal of onion services

This commit is contained in:
Bob Mottram 2016-09-30 20:45:02 +01:00
parent debf1411ad
commit 52e0e2ddb9
2 changed files with 7 additions and 4 deletions

View File

@ -588,6 +588,10 @@ function install_blog_from_repo {
}
function install_blog {
if [[ $(app_is_installed blog) == "1" ]]; then
return
fi
if [ ! $ONION_ONLY ]; then
ONION_ONLY='no'
fi
@ -615,10 +619,6 @@ function install_blog {
exit 5062
fi
if [[ $(app_is_installed blog) == "1" ]]; then
return
fi
# for the avatar changing command
apt-get -y install imagemagick

View File

@ -68,6 +68,9 @@ function remove_onion_service {
fi
fi
fi
if [ -d /var/lib/tor/hidden_service_${onion_service_name} ]; then
rm -rf /var/lib/tor/hidden_service_${onion_service_name}
fi
systemctl restart tor
}