Remove mobile directory
This commit is contained in:
parent
80db21af36
commit
79323d4e88
|
@ -71,6 +71,7 @@ function wait_for_onion_service {
|
|||
function remove_onion_service {
|
||||
onion_service_name="$1"
|
||||
onion_service_port_to=$2
|
||||
|
||||
#sed -i "/stealth ${onion_service_name}/d" /etc/tor/torrc
|
||||
sed -i "/hidden_service_${onion_service_name}/d" /etc/tor/torrc
|
||||
sed -i "/hidden_service_${onion_service_name}_mobile/d" /etc/tor/torrc
|
||||
|
@ -84,10 +85,14 @@ function remove_onion_service {
|
|||
fi
|
||||
fi
|
||||
fi
|
||||
if [[ $(onion_service_exists ${onion_service_name}) == "1" ]]; then
|
||||
if [ -d /var/lib/tor/hidden_service_${onion_service_name} ]; then
|
||||
shred -zu /var/lib/tor/hidden_service_${onion_service_name}/*
|
||||
rm -rf /var/lib/tor/hidden_service_${onion_service_name}
|
||||
fi
|
||||
if [ -d /var/lib/tor/hidden_service_${onion_service_name}_mobile ]; then
|
||||
shred -zu /var/lib/tor/hidden_service_${onion_service_name}_mobile/*
|
||||
rm -rf /var/lib/tor/hidden_service_${onion_service_name}_mobile
|
||||
fi
|
||||
remove_completion_param "${onion_service_name} onion domain"
|
||||
onion_update
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue