Fix removal of onion services
This commit is contained in:
parent
debf1411ad
commit
52e0e2ddb9
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue